Classify

Classify(string, int, Taxonomy, PrecisionRecallBalance)

Classifies text.

public ClassificationResponse Classify(string text, int bestClassesCount = 1, 
    Taxonomy taxonomy = Taxonomy.Iab2, 
    PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance.Default)
Parameter Type Description
text String Raw text to classify.
bestClassesCount Int32 Count of the best classes to return.
taxonomy Taxonomy Taxonomy to use for classification.
precisionRecallBalance PrecisionRecallBalance Balance between precision and recall: precision, recall or default.

Return Value

ClassificationResponse with classification results.

Exceptions

exception condition
ApiException An API exception occurred.

See Also


Classify(string, string, int, Taxonomy, PrecisionRecallBalance, string)

Classifies document by file name and directory name.

public ClassificationResponse Classify(string filename, string directory, int bestClassesCount = 1, 
    Taxonomy taxonomy = Taxonomy.Iab2, 
    PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance.Default, 
    string password = null)
Parameter Type Description
filename String Document name.
directory String Document directory.
bestClassesCount Int32 Count of the best classes to return.
taxonomy Taxonomy Taxonomy to use for classification.
precisionRecallBalance PrecisionRecallBalance Balance between precision and recall: precision, recall or default.
password String Document password.

Return Value

ClassificationResponse with classification results.

Exceptions

exception condition
ApiException An API exception occurred.

See Also


Classify(Stream, string, int, Taxonomy, PrecisionRecallBalance, string)

Classifies document from stream.

public ClassificationResponse Classify(Stream stream, string filename = null, 
    int bestClassesCount = 1, Taxonomy taxonomy = Taxonomy.Iab2, 
    PrecisionRecallBalance precisionRecallBalance = PrecisionRecallBalance.Default, 
    string password = null)
Parameter Type Description
stream Stream File stream.
filename String File name (for optional file type identification).
bestClassesCount Int32 Count of the best classes to return.
taxonomy Taxonomy Taxonomy to use for classification.
precisionRecallBalance PrecisionRecallBalance Balance between precision and recall: precision, recall or default.
password String Document password.

Return Value

ClassificationResponse with classification results.

Exceptions

exception condition
ApiException An API exception occurred.

See Also