quantulum3 icon indicating copy to clipboard operation
quantulum3 copied to clipboard

Inch parsed as inch centavo hour

Open s2u7 opened this issue 2 years ago • 1 comments

Describe the bug Although I see 'inch' in the default common words list, I see that it is still being regarded as a unit symbol.

To Reproduce Steps to reproduce the behavior:

import quantulum3
from quantulum3 import parser
quant = parser.parse('1 inch')
print(quant)

Expected behavior [Quantity(1, "Unit(name="inch", entity=Entity("length"), uri=Inch)")] Actual behavior [Quantity(1, "Unit(name="inch centavo hour", entity=Entity("unknown"), uri=None)")]

Additional information:

  • Python Version: [e.g. 3.8]
  • Classifier activated/ sklearn installed: [yes?]
  • Linux
  • Version [20.04.1]

Additional context Add any other context about the problem here.

s2u7 avatar Jun 29 '22 15:06 s2u7

Can not reproduce. I get

[Quantity(1, "Unit(name="inch", entity=Entity("length"), uri=Inch)")]

Are you sure that the classifier is activated and you are using the newest version of quantulum?

nielstron avatar Dec 31 '22 18:12 nielstron