DetectLanguageInput Class

  • java.lang.Object
    • com.azure.ai.textanalytics.models.DetectLanguageInput

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 id and document as required inputs.

DetectLanguageInput(String id, String text, String countryHint)

Creates an input for detect language that will takes id, document and countryHint.

Method Summary

Modifier and Type Method and Description
String getCountryHint()

Gets the countryHint property: The countryHint property.

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:

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 takes id, document and countryHint.

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 string countryHint = "" or "none".

Method Details

getCountryHint

public String getCountryHint()

Gets the countryHint property: The countryHint property.

Returns:

The countryHint value.

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.

toString

public String toString()

Overrides:

DetectLanguageInput.toString()

Applies to