Downloads · 30 days
0
ciscoriordan/dilemma-model
dilemma-model is a machine learning model from ciscoriordan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
Character-level transformer for Greek lemmatization, used as the neural fallback in the Dilemma lemmatizer.
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2026
Repo size
34.2 MB
Likes
0
Public
Click a slice to open those files.
.onnx17.4 MB · 51%
From the Hugging Face model README
Character-level transformer for Greek lemmatization, used as the neural fallback in the Dilemma lemmatizer.
| File | Size | Description |
|---|---|---|
model.pt | ~16 MB | PyTorch checkpoint (weights + config) |
encoder.onnx | ~7 MB | ONNX encoder for lightweight inference |
decoder_step.onnx | ~10 MB | ONNX decoder for lightweight inference |
vocab.json | ~9 KB | Character vocabulary (char2id / id2char mappings) |
This model is used automatically by the Dilemma library as a fallback for forms not found in the 12.3M-entry lookup table or resolved by rule-based morphological analysis. Only about 5% of Greek words reach the transformer.
pip install dilemma
from dilemma import Dilemma
d = Dilemma()
# The transformer is invoked automatically when needed
d.lemmatize("ἐποιήσαντο", lang="grc") # -> ποιέω
For inference, ONNX Runtime (~50 MB install) and PyTorch (~2 GB install) produce identical results. The ONNX files are provided for environments where a lighter dependency is preferred. PyTorch is only needed for training.
Trained from scratch in minutes on a single GPU using the train.py script in the Dilemma repository:
python train.py
python export_onnx.py # Export to ONNX format
MIT