Instructions to use nlpodyssey/bert-multilingual-uncased-geo-countries-headlines with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlpodyssey/bert-multilingual-uncased-geo-countries-headlines with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nlpodyssey/bert-multilingual-uncased-geo-countries-headlines")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nlpodyssey/bert-multilingual-uncased-geo-countries-headlines") model = AutoModelForSequenceClassification.from_pretrained("nlpodyssey/bert-multilingual-uncased-geo-countries-headlines") - Inference
- Notebooks
- Google Colab
- Kaggle
bert-multilingual-uncased-geo-countries-headlines
This a bert-base-multilingual-uncased model fine-tuned to perform geographic classification of news headlines.
It predicts the ISO 3166-1 alpha-3 country codes.
Authors
The NLP Odyssey Authors (Matteo Grella, Marco Nicola)
- Downloads last month
- 1,411