Class DetectLanguageInput
- java.lang.Object
-
- com.azure.ai.textanalytics.models.DetectLanguageInput
-
public final class DetectLanguageInput extends Object
TheDetectLanguageInput
model.
-
-
Constructor Summary
Constructors Constructor Description DetectLanguageInput(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCountryHint()
Gets the countryHint property: ThecountryHint
property.String
getId()
Gets the id property: Unique, non-empty document identifier.String
getText()
Gets the text property: The text property.String
toString()
-
-
-
Constructor Detail
-
DetectLanguageInput
public DetectLanguageInput(String id, String text)
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
public DetectLanguageInput(String id, String text, String countryHint)
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 Detail
-
getId
public String getId()
Gets the id property: Unique, non-empty document identifier.- Returns:
- The id value.
-
getText
public String getText()
Gets the text property: The text property.- Returns:
- The text value.
-
getCountryHint
public String getCountryHint()
Gets the countryHint property: ThecountryHint
property.- Returns:
- The
countryHint
value.
-
-