nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nondeterministic disambiguation

nielstron opened this issue · comments

Describe the bug
As mentioned in #161, for some inputs the output of the disambiguation tool seems nondeterministic. This is undesired behaviour.

To Reproduce
Results for "1mw"

Expected behavior
Always return either "milliwatt" or "megawatt", however not random ones.

Additional information:

  • Classifier activated/ sklearn installed: yes

Additional context
As pointed out in #162 , by running next(iter(..)) the entity and unit disambiguation may be non-deterministic