Share via


DocumentWord interface

Word in a document, consisting of a contiguous sequence of characters. For non-space delimited languages, such as Chinese, Japanese, and Korean, each character is represented as its own word.

Properties

confidence

Confidence of predicting the word.

content

Word text.

source

Encoded source that identifies the position of the word in the content.

span

Span of the word in the markdown content.

Property Details

confidence

Confidence of predicting the word.

confidence?: number

Property Value

number

content

Word text.

content: string

Property Value

string

source

Encoded source that identifies the position of the word in the content.

source?: string

Property Value

string

span

Span of the word in the markdown content.

span?: ContentSpan

Property Value