Link Search Menu Expand Document

ClassifierAddRulesFromSpreadsheet Method (Stream, Boolean)

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

Namespace:ByteScout.DocumentParser
Assembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version: 6.2.0.571-master
Syntax
public void AddRulesFromSpreadsheet(
	Stream spreadsheetStream,
	bool caseSensitive = true
)

Parameters

spreadsheetStream
Type: System.IOStream
Spreadsheet file stream.
caseSensitive (Optional)
Type: SystemBoolean
Case sensitivity of rules. Default is True (case sensitive).
Remarks
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

Reference


Copyright © 2016 - 2021 ByteScout