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")# 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") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 338 Bytes
924fc4c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"bos_token": "<s>",
"cls_token": "<s>",
"eos_token": "</s>",
"mask_token": "<mask>",
"model_max_length": 128,
"name_or_path": "vinai/bertweet-base",
"normalization": false,
"pad_token": "<pad>",
"sep_token": "</s>",
"special_tokens_map_file": null,
"tokenizer_class": "BertweetTokenizer",
"unk_token": "<unk>"
}
|