Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit warnings for typos or mistakes in labels and rules #236

Open
ISC-NLeclercq opened this issue Mar 29, 2022 · 0 comments
Open

Emit warnings for typos or mistakes in labels and rules #236

ISC-NLeclercq opened this issue Mar 29, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ISC-NLeclercq
Copy link
Collaborator

There are no warnings for certain mistakes made in the labels and rules file, which stop processing in IRIS. The following mistakes are currently not picked up by python:

  • labels:

    • type is missing, e.g. ;1,30,64;NLHoliday;holidays;0;;
    • type is incorrect, e.g. ;1,40;NLWatWie;typeAmbiguous: words 'wat', 'wie', 'hetgeen';0;; -> ":" instead of ";" as separator
    • superfluous space after label line (error message in IRIS: 'Invalid attribute name')
  • rules:

    • empty field, e.g. 1980;30;NLOndvw:"dat"|*NLArt:NLAttradj:NLCon:NLPrep|NLNumber:NLQuantity:NLOrdnum|NLTimeconcept|*typeConcept|NLVerb;*|*|NLAdvTime|+Join|*|*|; -> nothing follows last '|'
    • superfluous quotation mark, e.g. 1207;40;SBegin:NLAndOrBut|NLDat"+^NLOndvw|NLCon:NLRelCon|NLVerb;*|NLArt|NLCon|*; -> quotation mark after 'NLDat'
@ISC-NLeclercq ISC-NLeclercq added the bug Something isn't working label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants