Instructions to use minh21/XLNet-Reddit-Sentiment-Analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minh21/XLNet-Reddit-Sentiment-Analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minh21/XLNet-Reddit-Sentiment-Analysis")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minh21/XLNet-Reddit-Sentiment-Analysis") model = AutoModelForSequenceClassification.from_pretrained("minh21/XLNet-Reddit-Sentiment-Analysis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "</s>": 2, | |
| "<cls>": 3, | |
| "<eod>": 7, | |
| "<eop>": 8, | |
| "<mask>": 6, | |
| "<pad>": 5, | |
| "<s>": 1, | |
| "<sep>": 4, | |
| "<unk>": 0 | |
| } | |