nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter results before sorting (or use max straight away)

nielstron opened this issue · comments

Is your feature request related to a problem? Please describe.
In disambiguation, the results of the classifier areas first sorted, then filtered, thanks the first element is chosen. This is a possible runtime problem and unnecessarily complicated.
Describe the solution you'd like
Just use max for choosing the best result and filter first to reduce the list length.

Describe alternatives you've considered
Sorting may be kept