Skip to content

Morphological tagger for Ancient Greek and Latin using deep learning.

License

Notifications You must be signed in to change notification settings

hieronx/deepmorpheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Morpheus

Morphological tagger for Ancient Greek and Latin using deep learning.

Installation

Make sure you are running Python 3.6 or higher, and that you have already installed PyTorch >= 1.3.0. You can install the package from PyPI:

pip install deepmorpheus

Usage

Import the library:

import deepmorpheus

To tag a .txt file::

deepmorpheus.tag_from_file("input.txt", "ancient-greek")

To tag a string directly:

deepmorpheus.tag_from_lines("τὰ γὰρ πρὸ αὐτῶν καὶ τὰ ἔτι παλαίτερα σαφῶς μὲν εὑρεῖν διὰ χρόνου πλῆθος ἀδύνατα ἦν", "ancient-greek")

License

MIT

About

Morphological tagger for Ancient Greek and Latin using deep learning.

Resources

License

Stars

Watchers

Forks

Packages

No packages published