TextClassification.GetConfidenceScore(String) Method

Definition

Returns the confidence score for the specified entity.

[Android.Runtime.Register("getConfidenceScore", "(Ljava/lang/String;)F", "", ApiSince=26)]
public float GetConfidenceScore(string? entity);
[<Android.Runtime.Register("getConfidenceScore", "(Ljava/lang/String;)F", "", ApiSince=26)>]
member this.GetConfidenceScore : string -> single

Parameters

entity
String

String: Value is one of the following: 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

Returns

Value is between 0.0f and 1.0f inclusive

Attributes

Remarks

Returns the confidence score for the specified entity. The value ranges from 0 (low confidence) to 1 (high confidence). 0 indicates that the entity was not found for the classified text.

Android reference for android.view.textclassifier.TextClassification.getConfidenceScore.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to