quantulum3
quantulum3 copied to clipboard
Inch parsed as inch centavo hour
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.
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?