est-roberta-hist-quote-extract-for-tccp
Brief description
This model has been created for speaker and quote extraction in the historical meeting protocols of the Tartu City Council from 1918–1940, written in Estonian.
It is an Est-RoBERTa based model, fine-tuned for token classification task, where tokens are labelled as speaker names (B-SPEAKER and I-SPEAKER), direct speeches (B-DIRECT, I-DIRECT), indirect speeches (B-INDIRECT, I-INDIRECT) and other tokens (O).
Model building experiments have been conducted by Ann Maria Piho.
This work has been done under the project "Information extraction by the example of protocols of historical institutions (1880–1940)" (EKKD-TA10), which is funded by the National Program "Estonian Language and Culture in the Digital Age".
Usage notes
While this model can be used as a basis for speaker and quote extraction in the historical documents, its output can have annotation inconsistencies and special rule-based post-corrections are necessary to ensure valid BIO output (see the function enforce_bio_rules in train_token_classification_model_est_roberta.py for details).
It is assumed that the input text is split into sentences, and the model is applied sentence by sentence (see the script predict.py for details).
Included files
-
Model files (required for using the model):
model.safetensors— weights of the modelconfig.json— configuration of model's architecture and labelstokenizer.json,tokenizer_config.json,special_tokens_map.json-- configuration of model's tokenizer
-
Training files:
train.log— log file of the trainingdev_report.txt— model's results on the eval setdev_predictions.tsv— model's predictions on the eval set, compared with the gold standard labels
-
Scripts:
train_token_classification_model_EstBert.py— model training script. Exact command can be found from the header comment of the script.predict.py— prediction script for applying model on a conllu format input. Exact command can be found from the header comment of the script.
Changelog
- 2026-06-18 — initial creation and documentation in Estonian (AMP);
- 2026-09-08 — updated
tokenizer_config.json: changed"tokenizer_class"to"PreTrainedTokenizerFast"to get it working with transformers 5.x (SO); - 2026-09-09 — changed readme to English. Updated readme. Uploaded the model (SO);