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