Instructions to use apwic/sentiment-base-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apwic/sentiment-base-2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("apwic/sentiment-base-2") model = AutoModel.from_pretrained("apwic/sentiment-base-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download predict_results.json from apwic/sentiment-base-2: direct link, hf CLI and curl.
- Browser
- Download file 139 Bytes
-
https://huggingface.co/apwic/sentiment-base-2/resolve/main/predict_results.json
- Command line
-
hf download hf://apwic/sentiment-base-2/predict_results.json
-
curl -L -o predict_results.json https://huggingface.co/apwic/sentiment-base-2/resolve/main/predict_results.json
139 Bytes
| { | |
| "accuracy": 0.9070227497527201, | |
| "f1": 0.8890401554283152, | |
| "precision": 0.8861702127659574, | |
| "recall": 0.8920879731167108 | |
| } |