Instructions to use igorsterner/german-english-code-switching-identification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use igorsterner/german-english-code-switching-identification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="igorsterner/german-english-code-switching-identification")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("igorsterner/german-english-code-switching-identification") model = AutoModelForTokenClassification.from_pretrained("igorsterner/german-english-code-switching-identification") - Notebooks
- Google Colab
- Kaggle
German-English Code-Switching Identification
The Tongueswitcher BERT model finetuned for German-English identification. It was introduced in this paper. This model is case sensitive.
Overview
- Initialized language model: german-english-code-switching-bert
- Training data: The Denglish Corpus
- Infrastructure: 1x Nvidia A100 GPU
- Published: 16 October 2023
Hyperparameters
batch_size = 16
epochs = 3
n_steps = 789
max_seq_len = 512
learning_rate = 3e-5
weight_decay = 0.01
seed = 2021
Authors
- Igor Sterner:
is473 [at] cam.ac.uk - Simone Teufel:
sht25 [at] cam.ac.uk
BibTeX entry and citation info
@inproceedings{sterner2023tongueswitcher,
author = {Igor Sterner and Simone Teufel},
title = {TongueSwitcher: Fine-Grained Identification of German-English Code-Switching},
booktitle = {Sixth Workshop on Computational Approaches to Linguistic Code-Switching},
publisher = {Empirical Methods in Natural Language Processing},
year = {2023},
}
- Downloads last month
- 9