Downloads · 30 days
441
11% of all-time downloads
Christianvedel/OccCANINE_s2s_mix
OccCANINE_s2s_mix is a machine learning model from Christianvedel. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
OccCANINEs2smix is the recommended version of OccCANINE. It combines a CANINE encoder with a sequential decoder trained using a mixed loss that blends sequence-level and flat classification objectives. This is the def…
Downloads · 30 days
441
11% of all-time downloads
All-time downloads
4.2K
Public
Repo size
606 MB
Likes
0
Public
Click a slice to open those files.
.bin606 MB · 100%
From the Hugging Face model README
OccCANINE_s2s_mix is the recommended version of OccCANINE. It combines a CANINE encoder with a sequential decoder trained using a mixed loss that blends sequence-level and flat classification objectives. This is the default model loaded by the histocc package and achieves around 96% F1 at the 5-digit HISCO level.
See more on: GitHub.com/christianvedels/OccCANINE
Read the paper on arXiv: https://arxiv.org/abs/2402.13604
from histocc import OccCANINE
# OccCANINE_s2s_mix is loaded by default
model = OccCANINE()
result = model.predict("blacksmith", lang="en")
The model is also accessible via the command-line interface:
python predict.py --fn-in path/to/input.csv --col occ1 --fn-out path/to/output.csv --language en
See GETTING_STARTED.md for a full installation and usage guide.
English (en), Danish (da), Swedish (se), Dutch (nl), Catalan (ca), French (fr), Norwegian (no), Icelandic (is), Portuguese (pt), German (ge), Spanish (es), Italian (it), Greek (gr).
Developed at the University of Southern Denmark by Christian Møller Dahl, Torben Johansen and Christian Vedel.
Model Details: