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

cardiffnlp
/
twitter-xlm-roberta-base-sentiment

Text Classification
Transformers
PyTorch
google-tensorflow TensorFlow
multilingual
xlm-roberta
Model card Files Files and versions
xet
Community
17

Instructions to use cardiffnlp/twitter-xlm-roberta-base-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use cardiffnlp/twitter-xlm-roberta-base-sentiment with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="cardiffnlp/twitter-xlm-roberta-base-sentiment")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment")
    model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-xlm-roberta-base-sentiment", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

https://www.youtube.com/watch?v=Na9VmMNJvsA

#17 opened 8 months ago by
sibel-19

Model fails to load `ValueError: Converting from SentencePiece and Tiktoken failed`

#16 opened 11 months ago by
MauroExtrac

Adding `safetensors` variant of this model

#15 opened about 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#14 opened over 1 year ago by
SFconvertbot

Request: DOI

1
#13 opened over 1 year ago by
oncreative

How the training CSV file look like?

#12 opened over 1 year ago by
Phase-Technologies

Error with safetensors

#11 opened about 3 years ago by
MoatazBellah

Adding `safetensors` variant of this model

#10 opened about 3 years ago by
SFconvertbot

Adding `safetensors` variant of this model

#8 opened over 3 years ago by
SFconvertbot

Adding `safetensors` variant of this model

#7 opened over 3 years ago by
SFconvertbot

AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'

#6 opened over 3 years ago by
k3ybladewielder

Are there any ways to get the version of this model?

#5 opened over 3 years ago by
MoatazBellah

Accuracy of the model

#4 opened almost 4 years ago by
yassiracharki

Model fails with probotbuf > 3.20.0

๐Ÿ‘ 1
#3 opened almost 4 years ago by
mapa17

add language tags

#2 opened about 4 years ago by
lbourdois
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs