Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

bucketresearch
/
politicalBiasBERT

Text Classification
Transformers
PyTorch
Safetensors
English
bert
Model card Files Files and versions
xet
Community
7

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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

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
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs