Class DetectLanguageInput
java.lang.Object
com.azure.ai.textanalytics.models.DetectLanguageInput
The
DetectLanguageInput model.-
Constructor Summary
ConstructorsConstructorDescriptionDetectLanguageInput(String id, String text) Creates an input for detect language that will takesidanddocumentas required inputs.DetectLanguageInput(String id, String text, String countryHint) Creates an input for detect language that will takesid,documentandcountryHint. -
Method Summary
-
Constructor Details
-
DetectLanguageInput
Creates an input for detect language that will takesidanddocumentas required inputs.- Parameters:
id- Unique, non-empty document identifier.text- The text property.
-
DetectLanguageInput
Creates an input for detect language that will takesid,documentandcountryHint.- Parameters:
id- Unique, non-empty document identifier.text- The text property.countryHint- Accepts two letter country codes specified by ISO 3166-1 alpha-2. Defaults to "US" if not specified. To remove this behavior you can reset this parameter by setting this value to empty stringcountryHint= "" or "none".
-
-
Method Details
-
getId
Gets the id property: Unique, non-empty document identifier.- Returns:
- The id value.
-
getText
Gets the text property: The text property.- Returns:
- The text value.
-
getCountryHint
Gets the countryHint property: ThecountryHintproperty.- Returns:
- The
countryHintvalue.
-
toString
-