Skip to content

Commit

Permalink
Merge pull request #184 from aakarshsingh/master
Browse files Browse the repository at this point in the history
Request to Merge Antique Latin from digilibLT
  • Loading branch information
kylepjohnson committed Mar 9, 2016
2 parents 264fd91 + 13a47c7 commit aae3529
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cltk/corpus/latin/corpora.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@
{'name': 'latin_word2vec_cltk',
'location': 'remote',
'type': 'model'},
{'encoding': 'utf-8',
'markup': 'tei_xml',
'location': 'remote',
'type': 'text',
'name': 'latin_text_antique_digiliblt'},
]
9 changes: 9 additions & 0 deletions cltk/tests/test_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,15 @@ def test_show_corpora_bad_lang(self):
with self.assertRaises(AssertionError):
CorpusImporter('bad_lang')

def test_import_latin_text_antique_digiliblt(self):
"""Test cloning the Antique Latin from digilibLT."""
corpus_importer = CorpusImporter('latin')
corpus_importer.import_corpus('latin_text_antique_digiliblt')
file_rel = os.path.join('~/cltk_data/latin/text/latin_text_antique_digiliblt/README.md')
_file = os.path.expanduser(file_rel)
file_exists = os.path.isfile(_file)
self.assertTrue(file_exists)

def test_get_female_authors(self):
"""Test function to parse TLG female authors list."""
authors = get_female_authors()
Expand Down

0 comments on commit aae3529

Please sign in to comment.