Instructions to use cajcodes/DistilBERT-PoliticalBias with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cajcodes/DistilBERT-PoliticalBias with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cajcodes/DistilBERT-PoliticalBias")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cajcodes/DistilBERT-PoliticalBias") model = AutoModelForSequenceClassification.from_pretrained("cajcodes/DistilBERT-PoliticalBias") - Notebooks
- Google Colab
- Kaggle
Fix the author name field in the BibTex citation
#2 opened about 1 year ago
by
matous-volf
Some input texts raise an `IndexError: index out of range in self`
#1 opened over 1 year ago
by
matous-volf