Open mwillbanks opened 6 years ago
hey Mike, yeah you're right. the units-parsing is really poor right now. There's all sorts of situations like the one you mentioned. There's some others over here- https://github.com/nlp-compromise/compromise/issues/423
I'd really like us to improve this though, and all the parts are there to do this, so PR's welcome, if you're eager.
Overview
When handling ranges of numbers it will find the value but fail to assign the context properly in units. Each item in the range should be assigned with the units of the last number.
Example
Output
Expected Output