comtravo / ctparse

Parse natural language time expressions in python
https://www.comtravo.com
MIT License
131 stars 24 forks source link

Training models using a limit on max_stack_depth #82

Closed gabrielelanaro closed 5 years ago

gabrielelanaro commented 5 years ago

Certain problematic time expression produce a large number of "bad" parses, and this affects the training. Using a limit on max_stack_depth mitigates the problem. Replacing DummyScorer with a NaiveBayesScorer could further improve things. This option will be explored in the near future.