Instructions to use finiteautomata/bertweet-base-sentiment-analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use finiteautomata/bertweet-base-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="finiteautomata/bertweet-base-sentiment-analysis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("finiteautomata/bertweet-base-sentiment-analysis") model = AutoModelForSequenceClassification.from_pretrained("finiteautomata/bertweet-base-sentiment-analysis", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from finiteautomata/bertweet-base-sentiment-analysis: direct link, hf CLI and curl.
- Browser
- Download file 22 Bytes
-
https://huggingface.co/finiteautomata/bertweet-base-sentiment-analysis/resolve/main/added_tokens.json
- Command line
-
hf download hf://finiteautomata/bertweet-base-sentiment-analysis/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/finiteautomata/bertweet-base-sentiment-analysis/resolve/main/added_tokens.json
22 Bytes
| { | |
| "<mask>": 64000 | |
| } | |