ClassifierAddRule Method
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Adds a rule for the detection of a document by its content
Namespace:ByteScout.DocumentParserAssembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version: 6.4.1.617-master
Syntax
public void AddRule( string className, ClassifierRuleLogic logic, ICollection<string> keyPhrases, bool caseSensitive = true )
Parameters
- className
- Type: SystemString
Class name that will be returned as result if a document matches the rule. - logic
- Type: ByteScout.DocumentParserClassifierRuleLogic
Logic of rule. Use AND if all key phrases must exist in the document. Use OR if at least one key phrase must exist in the document. - keyPhrases
- Type: System.Collections.GenericICollectionString
List of key phrases or regular expressions. - caseSensitive (Optional)
- Type: SystemBoolean
Case sensitivity. Default is True (case sensitive).
Remarks
See Also