Downloads · 30 days
290
65% of all-time downloads
JonasHermann/normaere-model
normaere-model is a text generation model from JonasHermann. Use it when you need the model to write or continue text.
Transformer-based seq2seq normalizer for Middle High German (MHG) text, fine-tuned from google/mt5-base.
Downloads · 30 days
290
65% of all-time downloads
All-time downloads
446
Public
Parameters
582M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
Transformer-based seq2seq normalizer for Middle High German (MHG) text, fine-tuned from google/mt5-base.
Normalizes Middle High German texts (ca. 1050–1500) according to the standards of the Referenzkorpus Mittelhochdeutsch (ReM):
Fine-tuned on the Referenzkorpus Mittelhochdeutsch (ReM), Version 2.1.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("JonasHermann/normaere-model")
model = AutoModelForSeq2SeqLM.from_pretrained("JonasHermann/normaere-model")
input_text = "die stete wârheit"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)