-
Notifications
You must be signed in to change notification settings - Fork 12
/
test_inflection.py
17 lines (15 loc) · 1.01 KB
/
test_inflection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from greek_inflexion import GreekInflexion
import paradigm_tools as pu
inflexion = GreekInflexion('stemming.yaml', 'STEM_DATA/pratt_lexicon.yaml')
labels = pu.load_labels("labels.yaml", "el")
pu.decline_html("λύω", "PAP")
pu.decline_md("λύω", "PAP")
pu.conjugate_html("λύω", "PAD", "AAD", tags={"final-nu-aai.3s"}, merge_paradigms=False)
pu.conjugate_html("λύω", "PAI", "AAI", tags={"final-nu-aai.3s"})
pu.conjugate_html("λύω", "PAI", "PMI", "FAI", "FMI", tags={"final-nu-aai.3s"})
pu.conjugate_html("λύω", "PAI", "PMI", tags={"final-nu-aai.3s"}, merge_paradigms=False)
pu.layout_merged_verb_paradigm_html([["1", "2", "3", "4", "5", "6"]], ["Random"], labels)
pu.layout_merged_verb_paradigm_md([["1", "2", "3", "4", "5", "6"]], ["Random"], labels)
pu.layout_non_merged_verb_paradigm_md(["1", "2", "3", "4", "5", "6"], "Random", labels)
pu.conjugate_md("λύω", "PAI", "PMI", tags={"final-nu-aai.3s"}, merge_paradigms=True)
pu.conjugate_md("λύω", "PAI", "PMI", tags={"final-nu-aai.3s"}, merge_paradigms=False)