DocumentWord Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentWord
- com.
Implements
public final class DocumentWord
implements JsonSerializable<DocumentWord>
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.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
| Double |
getConfidence()
Get the confidence property: Confidence of predicting the word. |
| String |
getContent()
Get the content property: Word text. |
| String |
getSource()
Get the source property: Encoded source that identifies the position of the word in the content. |
|
Content |
getSpan()
Get the span property: Span of the word in the markdown content. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentWord fromJson(JsonReader jsonReader)
Reads an instance of DocumentWord from the JsonReader.
Parameters:
Returns:
Throws:
getConfidence
public Double getConfidence()
Get the confidence property: Confidence of predicting the word.
Returns:
getContent
public String getContent()
Get the content property: Word text.
Returns:
getSource
public String getSource()
Get the source property: Encoded source that identifies the position of the word in the content.
Returns:
getSpan
public ContentSpan getSpan()
Get the span property: Span of the word in the markdown content.
Returns: