Instructions to use tartuNLP/mtee-domain-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tartuNLP/mtee-domain-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tartuNLP/mtee-domain-detection")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tartuNLP/mtee-domain-detection") model = AutoModelForSequenceClassification.from_pretrained("tartuNLP/mtee-domain-detection") - Notebooks
- Google Colab
- Kaggle
A domain detection model for the MTee machine translation platform. The platform was developed in 2021 as a collaboration between the TartuNLP, the NLP research group at the University of Tartu, and Tilde. More information about the project can be found here.
Model Description
The model is a fine-tuned version of xlm-roberta-base. It classifies the input sentence into one of the following four domains: general, crisis, legal, military.
- Downloads last month
- 3