SentimentClassifierClassify Method |
Sentiment classification for a 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.Sentiment
)
Public Function Classify (
text As String,
Optional bestClassesCount As Integer = 1,
Optional taxonomy As Taxonomy = Taxonomy.Sentiment
) As ClassificationResponse
public:
ClassificationResponse^ Classify(
String^ text,
int bestClassesCount = 1,
Taxonomy taxonomy = Taxonomy::Sentiment
)
member Classify :
text : string *
?bestClassesCount : int *
?taxonomy : Taxonomy
(* Defaults:
let _bestClassesCount = defaultArg bestClassesCount 1
let _taxonomy = defaultArg taxonomy Taxonomy.Sentiment
*)
-> 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
Sentiment taxonomy (Sentiment or Sentiment3).
Return Value
Type:
ClassificationResponseClassificationResponse with classification results.
Exceptions
See Also