Skip to content

Commit

Permalink
moved stem lexicons under STEM_DATA/
Browse files Browse the repository at this point in the history
  • Loading branch information
jtauber committed Jul 20, 2019
1 parent 9ee39e3 commit 8f4c149
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

test_generate(
"stemming.yaml",
"test_data/pratt_lexicon.yaml",
"STEM_DATA/pratt_lexicon.yaml",
"test_data/pratt_test.yaml"
)

test_generate(
"stemming.yaml",
"test_data/dik_lexicon.yaml",
"STEM_DATA/dik_lexicon.yaml",
"test_data/dik_test.yaml"
)

test_generate(
"stemming.yaml",
"test_data/ltrg_lexicon.yaml",
"STEM_DATA/ltrg_lexicon.yaml",
"test_data/ltrg_test.yaml"
)
2 changes: 1 addition & 1 deletion examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Instantiate ``GreekInflexion`` with the stemming rule file and a lexicon file
(in this case, the lexicon for the paradigms in Pratt's Essentials).

>>> inflexion = GreekInflexion('stemming.yaml', 'test_data/pratt_lexicon.yaml')
>>> inflexion = GreekInflexion('stemming.yaml', 'STEM_DATA/pratt_lexicon.yaml')

Now, you can generate forms

Expand Down
2 changes: 1 addition & 1 deletion generate_homer_lexicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


ginflexion = GreekInflexion(
"stemming.yaml", "homer_lexicon.yaml"
"stemming.yaml", "STEM_DATA/homer_lexicon.yaml"
)

STEM_GUESSES = defaultdict(lambda: defaultdict(set))
Expand Down
2 changes: 1 addition & 1 deletion generate_lxxmorph_lexicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


ginflexion = GreekInflexion(
"stemming.yaml", "lxx_lexicon.yaml", strip_length=True
"stemming.yaml", "STEM_DATA/lxx_lexicon.yaml", strip_length=True
)

LXX_FILENAME = "lxxmorph/12.1Sam.mlxx"
Expand Down
2 changes: 1 addition & 1 deletion generate_morphgnt_lexicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

argparser.add_argument(
"--lexicon", dest="lexicon",
default="morphgnt_lexicon.yaml",
default="STEM_DATA/morphgnt_lexicon.yaml",
help="path to initial stem lexicon file "
"(defaults to morphgnt_lexicon.yaml)")

Expand Down
2 changes: 1 addition & 1 deletion homer_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
summary_by_lemma = defaultdict(set)

ginflexion = GreekInflexion(
"stemming.yaml", "homer_lexicon.yaml"
"stemming.yaml", "STEM_DATA/homer_lexicon.yaml"
)

first = True
Expand Down
2 changes: 1 addition & 1 deletion homer_generate_paradigms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
summary_by_lemma = defaultdict(set)

ginflexion = GreekInflexion(
"stemming.yaml", "homer_lexicon.yaml"
"stemming.yaml", "STEM_DATA/homer_lexicon.yaml"
)

first = True
Expand Down
2 changes: 1 addition & 1 deletion morphgnt_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

argparser.add_argument(
"--lexicon", dest="lexicon",
default="morphgnt_lexicon.yaml",
default="STEM_DATA/morphgnt_lexicon.yaml",
help="path to stem lexicon file "
"(defaults to morphgnt_lexicon.yaml)")

Expand Down
2 changes: 1 addition & 1 deletion noun_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

test_generate(
"noun_stemming.yaml",
"test_data/pratt_noun_lexicon.yaml",
"STEM_DATA/pratt_noun_lexicon.yaml",
"test_data/pratt_noun_test.yaml"
)
2 changes: 1 addition & 1 deletion unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class InflexionTest(unittest.TestCase):
def setUp(self):
self.inflexion = GreekInflexion(
"stemming.yaml",
"test_data/pratt_lexicon.yaml"
"STEM_DATA/pratt_lexicon.yaml"
)

def test_generate(self):
Expand Down

0 comments on commit 8f4c149

Please sign in to comment.