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

Implement equality dunders #21

Closed reynoldsnlp closed 5 years ago

reynoldsnlp commented 5 years ago

Currently, none of the custom objects have equality dunders (def __eq__), so the following fails:

>>> import udar
>>> t1 = udar.Text('Мы говорили.')
>>> t2 = udar.Text('Мы говорили.')
>>> t1 == t2
False

Add these for all the objects that it makes sense to.