ClassifierClassify Method (String, Int32, Taxonomy, PrecisionRecallBalance)
Classifies text.

Namespace: GroupDocs.Classification
Assembly: GroupDocs.Classification (in GroupDocs.Classification.dll) Version: 20.11.0
Syntax
public ClassificationResponse Classify(
	string text,
	int bestClassesCount = 1,
	Taxonomy taxonomy = Taxonomy.Iab2,
	PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance.Default
)

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: ClassificationResponse
ClassificationResponse with classification results.
Exceptions
ExceptionCondition
ApiExceptionAn API exception occurred.
See Also