mirror of
https://github.com/facebook/duckling.git
synced 2024-12-24 12:42:53 +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 |
||
---|---|---|
.. | ||
AmountOfMoney | ||
Dimensions | ||
Distance | ||
Duration | ||
Engine | ||
Numeral | ||
Ordinal | ||
PhoneNumber | ||
Quantity | ||
Ranking | ||
Regex | ||
Rules | ||
Temperature | ||
Testing | ||
Time | ||
TimeGrain | ||
Url | ||
Volume | ||
Api.hs | ||
Core.hs | ||
Debug.hs | ||
Dimensions.hs | ||
Engine.hs | ||
Lang.hs | ||
Resolve.hs | ||
Rules.hs | ||
Stash.hs | ||
Types.hs |