Instructions to use cl-trier/gbert-base_sosec-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cl-trier/gbert-base_sosec-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cl-trier/gbert-base_sosec-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cl-trier/gbert-base_sosec-sentiment") model = AutoModelForSequenceClassification.from_pretrained("cl-trier/gbert-base_sosec-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
Upload BertForSequenceClassification b8969a6
Department of Computational Linguistics - University of Trier commited on
Upload tokenizer 4a77adf
Department of Computational Linguistics - University of Trier commited on
Upload BertForSequenceClassification 1f4745f
Department of Computational Linguistics - University of Trier commited on
Upload tokenizer 597c6bd
Department of Computational Linguistics - University of Trier commited on
initial commit 256569e
Department of Computational Linguistics - University of Trier commited on