You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returned_roots[model_root_id] = [
lemma_root[:-deletion] + addition for lemma_root in lemma_roots
]
with:
if deletion:
returned_root = [lemma_root[:-deletion] + addition for lemma_root in lemma_roots]
else:
returned_root = [lemma_root + addition for lemma_root in lemma_roots]
returned_roots[model_root_id] = returned_root
The root is missing when declining
puer
,o
etc. This is the case for the 5 models in https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/src/modeles.la where the number of characters to remove from the canonical form is null: inv, puer, abraham, alter, miser.Current behavior:
[('puer', '--s----n-'), ('puer', '--s----v-'), ('um', '--s----a-'), ('i', '--s----g-'), ('o', '--s----d-'), ('o', '--s----b-'), ('i', '--p----n-'), ('i', '--p----v-'), ('os', '--p----a-'), ('orum', '--p----g-'), ('is', '--p----d-'), ('is', '--p----b-')]
Steps to reproduce the behavior with https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/collected.json:
Expected behavior
[('puer', '--s----n-'), ('puer', '--s----v-'), ('puerum', '--s----a-'), ('pueri', '--s----g-'), ('puero', '--s----d-'), ('puero', '--s----b-'), ('pueri', '--p----n-'), ('pueri', '--p----v-'), ('pueros', '--p----a-'), ('puerorum', '--p----g-'), ('pueris', '--p----d-'), ('pueris', '--p----b-')]
Desktop:
Windows 10 with Python 3.9.7
The text was updated successfully, but these errors were encountered: