# glem
GLEM is a lemmatizer for Ancient Greek.
It has been created in the project [Unraveling the Language of Perspective](http://ncs.ruhosting.nl/perspective/), which is supported by the EU under FP7, ERC Starting Grant 338421-Perspective.
The paper ‘A memory-based lemmatizer for Ancient Greek’ reports on how it works, what material it uses, and what the accuracy is. It can be found in the repository and at http://dl.acm.org/citation.cfm?id=3078100.
A webservice where you can upload texts that you want to have lemmatized can be found at https://webservices.cls.ru.nl/. Or you can host your own.
## Dependencies
Just Python 3 for the simple word list based lemmatizer.
To add machine learning based lemmatization that also takes into account the context, glem uses [Frog](https://languagemachines.github.io/frog/) via its [python binding](https://github.com/proycon/python-frog).
## Installation
Run: pip install .
We recommend using a Python virtual environment of your own. Alternatively for a global installation, prepend sudo.
## Example usage
Glem comes with a pretrained model, based on lemmas chosen by humans (in the UiO PROIEL project, PI: Dag Haug), for Herodotus. You can use it (with or without Frog) as follows:
` glem -f input.txt `
The files for this model can be found in glem/pretrained_models/herodotus .
## Webservice
A Dockerfile is provided for deployment of the GLEM webservice in production environments.
From the repository root, build as follows:
`` $ docker build -t webglem . ``
Consult the [Dockerfile](Dockerfile) for various build-time parameters that you may want to set for your own production environment.
When running, mount the path where you want the user data stored into the container, a directory webglem-userdata will be created here:
`` $ docker run -p 8080:80 -v /path/to/data/dir:/data webglem ``
Metadata
Release files for Glem 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Glem-1.3.1.tar.gz | 6.5 MB | Without provenance | Details for Glem-1.3.1.tar.gz |
Release files / Glem-1.3.1.tar.gz
| Download URL | Glem-1.3.1.tar.gz |
|---|---|
| Size | 6.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9830c874caec401af36a43231c41de79a63c0e05424d17a9b344ad9a3709357f
|
|
BLAKE2b-256 checksum How to use checksums |
4c6f8007038ddb98373cfc249421d284d5e58f042b3840c74dca55cdaea61611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for Glem 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.