nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coordinations are interpreted as ranges

yoavg opened this issue · comments

Describe the bug
5 and 6 kg is parsed as [Quantity(5.5, "Unit(name="kilogram", entity=Entity("mass"), uri=Kilogram)")]

Expected behavior

  • between 5 and 6 kg should parse as [Quantity(5.5, "Unit(name="kilogram", entity=Entity("mass"), uri=Kilogram)")]
  • 5 and 6 kg should parse as [Quantity(5, "Unit(name="kilogram", entity=Entity("mass"), uri=Kilogram)"), Quantity(6, "Unit(name="kilogram", entity=Entity("mass"), uri=Kilogram)")]

Additional context
The 5 and 6 x construction is common in, eg, the two groups were treated with 5 and 6 mg ... respectively

should be fixed by #204