A macronizer for Ancient Greek
Project description
A Macronizer for Ancient Greek
A macronizer geared towards batch macronizing corpora with machine-friendly markup, avoiding combining diacritics and everything that doesn't render in standard IDE and terminal fonts unless specifically asked for.
Installation:
- Create a virtual environment with Python 3.12. Nothing will work if you don't get this step right!
- After having initialized your venv, activate it and install the right version of spaCy, the dependency of odyCy, with
pip install spacy>=3.7.4,<3.8.0. - Navigate to
external/grc_odycy_joint_trfand install odyCy locally withpip install grc_odycy_joint_trf, while making sure that you are still in the venv with Python 3.12 you created earlier. - Install the submodule
grc-utilswithcd grc-utilsandpip install ..
And that's it! Start macronizing by running the notebook here.
If you have a plain text file you want to macronize, you can run it with python main.py input_file output_file.
Note that if you have a newer spaCy pipeline for Ancient Greek, it is easy to substitute it for odyCy. Indeed, the rest of the software has no legacy dependencies and should run with the latest python.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grc_macronizer-1.3.0.tar.gz.
File metadata
- Download URL: grc_macronizer-1.3.0.tar.gz
- Upload date:
- Size: 16.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ed99d8e1cf9bb07a0e3cf2c20fca6073940ff6c93ee3d8f8a8f27c2958a28ce
|
|
| MD5 |
a96ca9457bd2057eb0c3f388c9f4d7b0
|
|
| BLAKE2b-256 |
5a6222e71176485ee6d50ff42a6d9a0cdb1b1951ef8984a1f235595aa3166525
|
File details
Details for the file grc_macronizer-1.3.0-py3-none-any.whl.
File metadata
- Download URL: grc_macronizer-1.3.0-py3-none-any.whl
- Upload date:
- Size: 17.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7df5ac296b5a1a7090a08ce75310c7cfbd4ec5f0da09d1a7391c95a0ffe7a65
|
|
| MD5 |
185d707ae7633f2438d702295b4c92e8
|
|
| BLAKE2b-256 |
c0e9a0ab6bd109c07eae9736bd426f40f967232ba042bfeec568a4c4b86218d2
|