TextClassification.Builder.SetEntityType(String, Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為分類結果設定實體類型並分配信心分數。
[Android.Runtime.Register("setEntityType", "(Ljava/lang/String;F)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)]
public Android.Views.TextClassifiers.TextClassification.Builder SetEntityType(string type, float confidenceScore);
[<Android.Runtime.Register("setEntityType", "(Ljava/lang/String;F)Landroid/view/textclassifier/TextClassification$Builder;", "", ApiSince=26)>]
member this.SetEntityType : string * single -> Android.Views.TextClassifiers.TextClassification.Builder
參數
- type
- String
字串:此值不可能為空值。 價值是以下之一:TextClassifier.TYPE_UNKNOWN TextClassifier.TYPE_OTHER TextClassifier.TYPE_EMAIL TextClassifier.TYPE_PHONE TextClassifier.TYPE_ADDRESS TextClassifier.TYPE_URL TextClassifier.TYPE_DATE TextClassifier.TYPE_DATE_TIME TextClassifier.TYPE_FLIGHT_NUMBER TextClassifier.TYPE_OTP TextClassifier.TYPE_SMS_RETRIEVER_OTP TextClassifier.TYPE_SMS_WEB_OTP
- confidenceScore
- Single
float:從0(低信心度)到1(高信心度)的值。 0 表示該實體對機密文本不存在。 大於1的數值會被夾到1。 數值介於 0.0 至 1.0 華氏度之間(含含)
傳回
這個值不可能為零值。
- 屬性
備註
為分類結果設定實體類型並分配信心分數。 如果已為指定實體類型設定信心分數,該分數將覆蓋該分數。
Android 參考資料。android.view.textclassifier.TextClassification.Builder.setEntityType
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。