ClassifierClassify Method (String, Int32, Taxonomy, PrecisionRecallBalance) |
Classifies text.
Namespace: GroupDocs.ClassificationAssembly: GroupDocs.Classification (in GroupDocs.Classification.dll) Version: 20.11.0
Syntaxpublic ClassificationResponse Classify(
string text,
int bestClassesCount = 1,
Taxonomy taxonomy = Taxonomy.Iab2,
PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance.Default
)
Public Function Classify (
text As String,
Optional bestClassesCount As Integer = 1,
Optional taxonomy As Taxonomy = Taxonomy.Iab2,
Optional precisionRecallBalance As PrecisionRecallBalance = PrecisionRecallBalance.Default
) As ClassificationResponse
public:
ClassificationResponse^ Classify(
String^ text,
int bestClassesCount = 1,
Taxonomy taxonomy = Taxonomy::Iab2,
PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance::Default
)
member Classify :
text : string *
?bestClassesCount : int *
?taxonomy : Taxonomy *
?precisionRecallBalance : PrecisionRecallBalance
(* Defaults:
let _bestClassesCount = defaultArg bestClassesCount 1
let _taxonomy = defaultArg taxonomy Taxonomy.Iab2
let _precisionRecallBalance = defaultArg precisionRecallBalance PrecisionRecallBalance.Default
*)
-> ClassificationResponse
Parameters
- text
- Type: SystemString
Raw text to classify. - bestClassesCount (Optional)
- Type: SystemInt32
Count of the best classes to return. - taxonomy (Optional)
- Type: GroupDocs.ClassificationTaxonomy
Taxonomy to use for classification. - precisionRecallBalance (Optional)
- Type: GroupDocs.ClassificationPrecisionRecallBalance
Balance between precision and recall: precision, recall or default.
Return Value
Type:
ClassificationResponseClassificationResponse with classification results.
Exceptions
See Also