Class BatchDetectDominantLanguageDetails
The documents details for language detect call.
Inherited Members
Namespace: Oci.AilanguageService.Models
Assembly: OCI.DotNetSDK.Ailanguage.dll
Syntax
public class BatchDetectDominantLanguageDetails
Properties
CharsToConsider
Declaration
[JsonProperty(PropertyName = "charsToConsider")]
public int? CharsToConsider { get; set; }
Property Value
Type | Description |
---|---|
int? | default value is None. Specifies maximum number of characters to consider for determining the dominant language. If unspecified, then optimum number characters will be considered. If 0 is specified then all the characters are used to determine the language. If the value is greater than 0, then specified number of characters will be considered from the beginning of the text. |
CompartmentId
Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment that calls the API, inference will be served from pre trained model |
Documents
Declaration
[Required(ErrorMessage = "Documents is required.")]
[JsonProperty(PropertyName = "documents")]
public List<DominantLanguageDocument> Documents { get; set; }
Property Value
Type | Description |
---|---|
List<DominantLanguageDocument> | List of Documents for detect language. |
Remarks
Required
EndpointId
Declaration
[JsonProperty(PropertyName = "endpointId")]
public string EndpointId { get; set; }
Property Value
Type | Description |
---|---|
string | The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint. |
ShouldIgnoreTransliteration
Declaration
[JsonProperty(PropertyName = "shouldIgnoreTransliteration")]
public bool? ShouldIgnoreTransliteration { get; set; }
Property Value
Type | Description |
---|---|
bool? | Specifies whether to consider or ignore transliteration. For example "hi, aap kaise ho? sab kuch teek hai? I will call you tomorrow." would be detected as English when ignore transliteration=true, Hindi when ignoreTransliteration=false. |