Class DetectLanguageInput
java.lang.Object
com.azure.ai.textanalytics.models.DetectLanguageInput
The
DetectLanguageInput
model.-
Constructor Summary
ConstructorDescriptionDetectLanguageInput
(String id, String text) Creates an input for detect language that will takesid
anddocument
as required inputs.DetectLanguageInput
(String id, String text, String countryHint) Creates an input for detect language that will takesid
,document
andcountryHint
. -
Method Summary
-
Constructor Details
-
DetectLanguageInput
Creates an input for detect language that will takesid
anddocument
as required inputs.- Parameters:
id
- Unique, non-empty document identifier.text
- The text property.
-
DetectLanguageInput
Creates an input for detect language that will takesid
,document
andcountryHint
.- 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: ThecountryHint
property.- Returns:
- The
countryHint
value.
-
toString
-