R11484/modelsa0ebe5d8b65emaster
R11484/models
a0ebe5d8b65emaster
models
models
readme.txt
readme.txt
The models are uploaded to the hugging-face model hub:
https://huggingface.co/Gantenbein
For each country the finetuned version of the GPT2, RoBERTa and XLM-R model
is available. The Swiss model is the basic model with no finetuning.
The model can be loaded using the following code:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("Gantenbein/ADDI-CH-GPT2")
model = AutoModel.from_pretrained("Gantenbein/ADDI-CH-GPT2")
In the above example the tokenizer and model for the GPT2 model
trained on swiss ID cards is loaded.
https://huggingface.co/Gantenbein
For each country the finetuned version of the GPT2, RoBERTa and XLM-R model
is available. The Swiss model is the basic model with no finetuning.
The model can be loaded using the following code:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("Gantenbein/ADDI-CH-GPT2")
model = AutoModel.from_pretrained("Gantenbein/ADDI-CH-GPT2")
In the above example the tokenizer and model for the GPT2 model
trained on swiss ID cards is loaded.
c4science · Help