snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.9k stars 513 forks source link

Parsing failure impossible to diagnose #794

Closed Shotgun167 closed 5 years ago

Shotgun167 commented 5 years ago

If you have a syntax error in a yaml training file, Snips will tell you something like:

Missing ending ']' in annotated utterance"

Good luck finding which utterance is missing that bracket.

I found that adding " + state.input" to the exception string in input.py/capture_slot and input.py/capture_tagged would print the utterance, so that the fix was quick.

adrienball commented 5 years ago

@Shotgun167 Thanks for reporting, the fix will be in the next release 0.19.7