impresso-langident
Detects the language for impresso-like historical newspaper data in the languages: German (de), French (fr), Italian (it), English (en), and Luxembourgish (lb).
How to install
pip install transformers floret
How to run:
from transformers import pipeline
MODEL_NAME = "impresso-project/impresso-langident"
lang_pipeline = pipeline(
"langident",
model=MODEL_NAME,
trust_remote_code=True,
device="cpu",
)
text = """En l'an 1348, au plus fort des ravages de la peste noire à travers
l'Europe, le Royaume de France se trouvait à la fois au bord du désespoir et
face à une opportunité."""
langs = lang_pipeline(text)
print(langs)
- Downloads last month
- 28
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support
HF Inference deployability: The model has no library tag.