Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • 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

classla
/
xlm-r-parlasent

Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
sentiment-analysis
text-regression
sentiment-regression
sentiment-classification
parliament
text-embeddings-inference
Model card Files Files and versions
xet
Community
5

Instructions to use classla/xlm-r-parlasent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use classla/xlm-r-parlasent with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="classla/xlm-r-parlasent")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("classla/xlm-r-parlasent")
    model = AutoModelForSequenceClassification.from_pretrained("classla/xlm-r-parlasent", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
xlm-r-parlasent / tutorial
480 kB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 2 commits
5roop's picture
5roop
Upload 3 files
0582cd2 verified over 1 year ago
  • how_to_use_parlasent.ipynb
    164 kB
    Upload 3 files over 1 year ago
  • how_to_use_parlasent_w_stanza.ipynb
    164 kB
    Upload 3 files over 1 year ago
  • sample_data.csv
    153 kB
    Upload tutorial over 1 year ago