Link Search Menu Expand Document

ClassifierAddRulesFromSpreadsheet Method (String, Boolean)

Adds rules and key phrases from a spreadsheet file (XLS, XLSX, CSV, ODS).

Assembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version:
public void AddRulesFromSpreadsheet(
	string spreadsheetFileName,
	bool caseSensitive = true


Type: SystemString
Spreadsheet file name.
caseSensitive (Optional)
Type: SystemBoolean
Case sensitivity of rules. Default is True (case sensitive).
The spreadsheet should be presented in the following form. First column: class name. Second column: rule logic - "AND" or "OR". Subsequent columns should contain key phrases or regular expressions - one key phrase or regular expression per column (cell). Regular expressions are expected in ECMA format (as used in JavaScript): the expression must be embraced with slashes '/ /' with optional regex options in the end, for example: "/ab+c/i".
See Also


Copyright © 2016 - 2021 ByteScout