Class DocumentLanguage
java.lang.Object
com.azure.ai.documentintelligence.models.DocumentLanguage
An object representing the detected language for a given text span.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the confidence property: Confidence of correctly identifying the language.Get the locale property: Detected language.getSpans()
Get the spans property: Location of the text elements in the concatenated content the language applies to.
-
Method Details
-
getLocale
Get the locale property: Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans").- Returns:
- the locale value.
-
getSpans
Get the spans property: Location of the text elements in the concatenated content the language applies to.- Returns:
- the spans value.
-
getConfidence
public double getConfidence()Get the confidence property: Confidence of correctly identifying the language.- Returns:
- the confidence value.
-