DocumentLanguage Class
- java.
lang. Object - com.
azure. ai. formrecognizer. documentanalysis. models. DocumentLanguage
- com.
public final class DocumentLanguage
An object representing the detected language for a given text span.
Constructor Summary
Constructor | Description |
---|---|
DocumentLanguage() |
Constructs a Document |
Method Summary
Modifier and Type | Method and Description |
---|---|
float |
getConfidence()
Get the confidence property: Confidence of correctly identifying the language. |
String |
getLocale()
Get the Detected language code. |
List<Document |
getSpans()
Get the spans property: Location of the text elements in the concatenated content the language applies to. |
Methods inherited from java.lang.Object
Constructor Details
DocumentLanguage
public DocumentLanguage()
Constructs a DocumentLanguage object.
Method Details
getConfidence
public float getConfidence()
Get the confidence property: Confidence of correctly identifying the language.
Returns:
getLocale
public String getLocale()
Get the Detected language code. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans").
Returns:
getSpans
public List
Get the spans property: Location of the text elements in the concatenated content the language applies to.
Returns:
Applies to
Azure SDK for Java