Udostępnij za pośrednictwem


TextSelection.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

Returns

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.

Java documentation for android.view.textclassifier.TextSelection.getConfidenceScore(java.lang.String).

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