Class BatchDetectDominantLanguageDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • shouldIgnoreTransliteration

        public BatchDetectDominantLanguageDetails.Builder shouldIgnoreTransliteration​(Boolean shouldIgnoreTransliteration)
        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.

        Parameters:
        shouldIgnoreTransliteration - the value to set
        Returns:
        this builder
      • charsToConsider

        public BatchDetectDominantLanguageDetails.Builder charsToConsider​(Integer charsToConsider)
        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.

        Parameters:
        charsToConsider - the value to set
        Returns:
        this builder
      • endpointId

        public BatchDetectDominantLanguageDetails.Builder endpointId​(String endpointId)
        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.

        Parameters:
        endpointId - the value to set
        Returns:
        this builder
      • compartmentId

        public BatchDetectDominantLanguageDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that calls the API, inference will be served from pre trained model
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder