mirror of
https://github.com/facebook/duckling.git
synced 2024-10-27 06:08:17 +03:00
3d18cf5ea9
Summary: We can detect certain kinds of contradictions sooner, producing a token with an unresolvable Predicate is wasteful. For a text like: ``` "Demain apres midi 14h 15 h 16h vendredi 14 a 15h" ``` it could produce 7000 tokens with empty predicates. After this change it produces none and we get a 4x improvement in time and 6x improvement in allocations. Note I only covered `ruleIntersect*` here. I need to do this for other instances as well. Reviewed By: JonCoens Differential Revision: D4871078 fbshipit-source-id: 9f0e7ad |
||
---|---|---|
.. | ||
Corpus.hs | ||
Rules.hs |