Class DocumentLanguage
- java.lang.Object
-
- com.azure.ai.formrecognizer.models.DocumentLanguage
-
public final class DocumentLanguage extends Object
An object representing the detected language for a given text span.
-
-
Constructor Summary
Constructors Constructor Description DocumentLanguage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
Get the Detected language code.float
getConfidence()
Get the confidence property: Confidence of correctly identifying the language.List<DocumentSpan>
getSpans()
Get the spans property: Location of the text elements in the concatenated content the language applies to.
-
-
-
Method Detail
-
getCode
public String getCode()
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:
- the code value.
-
getSpans
public List<DocumentSpan> getSpans()
Get the spans property: Location of the text elements in the concatenated content the language applies to.- Returns:
- the spans value.
-
getConfidence
public float getConfidence()
Get the confidence property: Confidence of correctly identifying the language.- Returns:
- the confidence value.
-
-