TextSelection.Builder.SetEntityType(String, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets an entity type for the classified text and assigns a confidence score.
[Android.Runtime.Register("setEntityType", "(Ljava/lang/String;F)Landroid/view/textclassifier/TextSelection$Builder;", "", ApiSince=26)]
public Android.Views.TextClassifiers.TextSelection.Builder SetEntityType(string type, float confidenceScore);
[<Android.Runtime.Register("setEntityType", "(Ljava/lang/String;F)Landroid/view/textclassifier/TextSelection$Builder;", "", ApiSince=26)>]
member this.SetEntityType : string * single -> Android.Views.TextClassifiers.TextSelection.Builder
Parameters
- type
- String
String: This value cannot be null. 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
- confidenceScore
- Single
float: a value from 0 (low confidence) to 1 (high confidence). 0 implies the entity does not exist for the classified text. Values greater than 1 are clamped to 1. Value is between 0.0f and 1.0f inclusive
Returns
This value cannot be null.
- Attributes
Remarks
Sets an entity type for the classified text and assigns a confidence score.
Android reference for android.view.textclassifier.TextSelection.Builder.setEntityType.
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.