reynoldsnlp / udar

UDAR Does Accented Russian: A finite-state morphological analyzer of Russian that handles stressed wordforms.
GNU General Public License v3.0
26 stars 1 forks source link

add argument to `Sentence.disambiguate(force=None)` #46

Closed reynoldsnlp closed 4 years ago

reynoldsnlp commented 4 years ago

Make it possible to force disambiguation using any number of methods, such as random, weight, stanza, etc.

Using one of these methods guarantees that each token has only one reading. These methods are already part of the stressed() method, so it would make sense to abstract each method to be used either as a method of disambiguation, or a method of simply generating a stressed wordform while leaving ambiguous readings in place.