Instructions to use textattack/bert-base-uncased-yelp-polarity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/bert-base-uncased-yelp-polarity with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/bert-base-uncased-yelp-polarity")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/bert-base-uncased-yelp-polarity") model = AutoModelForSequenceClassification.from_pretrained("textattack/bert-base-uncased-yelp-polarity", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
0ed84a5 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:934989a6c6465c39311acbb466e8e27e4a715539c3baa95c7c66b424a6c27a66
size 437985387
|