Skip to content

CountPolicy

Defined in: counting.ts:14

optional excludeAnnotationKinds?: readonly string[]

Defined in: counting.ts:19

Annotation kinds whose covered tokens do not count.


optional groupAnnotationKinds?: readonly string[]

Defined in: counting.ts:17

Annotation kinds that count as one unit regardless of their token count.


id: string

Defined in: counting.ts:15


optional includeToken?: (token, sentence, doc) => boolean

Defined in: counting.ts:20

Tok

Sentence

Document

boolean


optional transform?: (units, sentence, doc) => readonly CountUnit[]

Defined in: counting.ts:21

readonly CountUnit[]

Sentence

Document

readonly CountUnit[]