We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesML Kitmlsdk.langdetectmlsdk.langdetect.cloudMLRemoteLangDetectorSettingFactory

MLRemoteLangDetectorSetting.Factory

class info
com.huawei.hms.mlsdk.langdetect.cloud.MLRemoteLangDetectorSetting.Factory
Creates an instance of the language detection configurator.

Public Constructor Summary

Constructor name
Factory()
Creates a factory instance of the language detector configurator.

Public Method Summary

Return typeMethod name
mlsdk.langdetect.cloud.MLRemoteLangDetectorSettingcreate()
mlsdk.langdetect.cloud.MLRemoteLangDetectorSetting.FactorysetTrustedThreshold(float trustedThreshold)

Public Constructors

Method
public Factory()
Creates a factory instance of the language detector configurator.

Public Methods

Method
public mlsdk.langdetect.cloud.MLRemoteLangDetectorSetting create()
Creates a language detector instance.

Return

Typedesc
mlsdk.langdetect.cloud.MLRemoteLangDetectorSettingLanguage detector instance.
Method
public mlsdk.langdetect.cloud.MLRemoteLangDetectorSetting.Factory setTrustedThreshold(float trustedThreshold)
Sets the confidence for language detection.

Parameters

Parameter nameParameter desc
trustedThresholdConfidence of language detection.


Return

Typedesc
mlsdk.langdetect.cloud.MLRemoteLangDetectorSetting.FactoryInstance of the language detection configurator.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.