quantulum3 icon indicating copy to clipboard operation
quantulum3 copied to clipboard

Inverse order ranged Numbers not predicted

Open ManivannanIkomet opened this issue 6 years ago • 2 comments
trafficstars

Hi @nielstron, If the range exceeds the specified numerical in the library, then the prediction will be exact otherwise it's not predicted.

Correct Prediction

parser.parse('20 – 21')
[Quantity(20.5, "Unit(name="dimensionless", entity=Entity("dimensionless"), uri=Dimensionless_quantity)")]

No Prediction

parser.parse('20 – 19')
[]

ManivannanIkomet avatar Oct 31 '19 13:10 ManivannanIkomet

Any one please help me.

ManivannanIkomet avatar Nov 04 '19 05:11 ManivannanIkomet

Hi thanks for this issue! Which text did you find this example from? The package is intended to parse text written by humans and thus makes the assumption that ranges are (as conventional) noted in an increasing fashion to decrease wrong positives. Hence it would be interesting to see if there are cases where this convention does not apply.

nielstron avatar Nov 08 '19 16:11 nielstron