DetectLanguageInput Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. DetectLanguageInput
- com.
public final class DetectLanguageInput
The DetectLanguageInput model.
Constructor Summary
| Constructor | Description |
|---|---|
| DetectLanguageInput(String id, String text) |
Creates an input for detect language that will takes |
| DetectLanguageInput(String id, String text, String countryHint) |
Creates an input for detect language that will takes |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getCountryHint()
Gets the country |
| String |
getId()
Gets the id property: Unique, non-empty document identifier. |
| String |
getText()
Gets the text property: The text property. |
| String | toString() |
Methods inherited from java.lang.Object
Constructor Details
DetectLanguageInput
public DetectLanguageInput(String id, String text)
Creates an input for detect language that will takes id and document as required inputs.
Parameters:
DetectLanguageInput
public DetectLanguageInput(String id, String text, String countryHint)
Creates an input for detect language that will takes id, document and countryHint.
Parameters:
countryHint = "" or "none".
Method Details
getCountryHint
public String getCountryHint()
Gets the countryHint property: The countryHint property.
Returns:
countryHint value.getId
public String getId()
Gets the id property: Unique, non-empty document identifier.
Returns:
getText
public String getText()
Gets the text property: The text property.
Returns:
toString
public String toString()
Overrides:
DetectLanguageInput.toString()