Skip to content

Nondeterministic disambiguation #163

Description

@nielstron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions