Instructions to use bucketresearch/politicalBiasBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bucketresearch/politicalBiasBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bucketresearch/politicalBiasBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bucketresearch/politicalBiasBERT") model = AutoModelForSequenceClassification.from_pretrained("bucketresearch/politicalBiasBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Dataset used for training?
👍 1
3
#7 opened almost 2 years ago
by
lanortha
Testing data
#6 opened over 2 years ago
by
CLacrobat33
Size of token a must match the size of token b
1
#4 opened over 3 years ago
by
jbgg
The model is giving me negative values!
1
#3 opened over 3 years ago
by
IlDatori9512
The sample code does not work because labels is not defined
#2 opened over 3 years ago
by
GourabHazra
Adding `safetensors` variant of this model
#1 opened over 3 years ago
by
SFconvertbot