ClassifyTextCC
Finds matching categories for the specified text by using category-based classification.
Member of namespace
CCSyntax
bool ClassifyTextCC(string TextToClassify)
Parameters
- TextToClassify
The text to be categorized.
Smart parameters are supported.
Returns
True if the action completes successfully. Otherwise, this action returns False.Level
All levels.Details
Use this action to set the following items:
| Item | Description |
|---|---|
| Match variables | Some variables are set to contain category match data. For more information, see Category match variables. |
- Example
// Mandatory prerequisite: An action that performs OCR for the page // The OCR action must create an XML layout file (such as OCR_SR/recognize or OCR_A/recognize) Recognize() // Mandatory settings SetListenerURLCC("http://localhost:18087") SetKnowledgeBaseCC("Mortgage") SetLanguageCC("English") // Optional settings SetProblemValueCC(0.9) // Find matching categories ClassifyTextCC("Place text to classify here")