Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inch parsed as inch centavo hour #194

Open
s2u7 opened this issue Jun 29, 2022 · 1 comment
Open

Inch parsed as inch centavo hour #194

s2u7 opened this issue Jun 29, 2022 · 1 comment

Comments

@s2u7
Copy link

s2u7 commented Jun 29, 2022

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.

@nielstron
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants