-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:offerijns/nlp-classics
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
# Deep Morpheus | ||
Trying to parse Ancient Greek texts using state of the art neural network techniques. | ||
Morphological tagger for Ancient Greek and Latin using deep learning. | ||
|
||
This packages requires Python 3.6+, as well as PyTorch 1.0+. To get started, install the package from PyPI: | ||
``` | ||
## Getting started | ||
Make sure you are running Python 3.6 or higher. You can install the package from PyPI: | ||
|
||
```shell | ||
pip install deepmorpheus | ||
``` | ||
|
||
Then, you can tag the contents of a text file like this: | ||
To tag a `.txt` file, simply run: | ||
|
||
```python | ||
import deepmorpheus | ||
|
||
deepmorpheus.tag_from_file("input.txt", "ancient-greek") | ||
``` | ||
deepmorpheus.tag_from_file(filepath, "ancient-greek") | ||
``` |