patrickfrey / strusAnalyzer

Library for document analysis (segmentation, tokenization, normalization, aggregation) with the goal to get a set of items that can be inserted into a strus storage. Also some functions for analysing tokens or phrases of the strus query are provided.
http://www.project-strus.net
Mozilla Public License 2.0
3 stars 0 forks source link

error handling when semicolon is missing in attribute definition #43

Closed andreasbaumann closed 7 years ago

andreasbaumann commented 7 years ago
[Attribute]
    no = orig content lineno
    docid = orig content id;

If executing:

strusAnalyze -D 'text/tab-separated-values' -g tsv gutenberg.ana gutenberg.tsv | & less

I just don't see 'no'. I also don't see an error message about the ';' missing.

patrickfrey commented 7 years ago

Fixed (in strusUtilities, it is a program loader issue)

andreasbaumann commented 7 years ago

I see now:

ERROR failed to load analyzer program gutenberg.ana: error defining expression for 'textwolf' segmenter: error in selection expression 'id' at start of expression

or

ERROR failed to load analyzer program gutenberg.ana: error in document analyzer program at line 10 column 42: unexpected end of line in selector expression (missing semicolon ';' at end of expression?)