Instructions to use DSI/personal_sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DSI/personal_sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DSI/personal_sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DSI/personal_sentiment") model = AutoModelForSequenceClassification.from_pretrained("DSI/personal_sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download wrapper_config.json from DSI/personal_sentiment: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/DSI/personal_sentiment/resolve/refs%2Fpr%2F1/wrapper_config.json
- Command line
-
hf download hf://DSI/personal_sentiment@refs/pr/1/wrapper_config.json
-
curl -L -o wrapper_config.json https://huggingface.co/DSI/personal_sentiment/resolve/refs%2Fpr%2F1/wrapper_config.json
338 Bytes
| {"py/object": "pet.wrapper.WrapperConfig", "model_type": "bert", "model_name_or_path": "arabic_multilabel_2ipet/g1/p1-i1", "wrapper_type": "sequence_classifier", "task_name": "arabic_multilabel", "max_seq_length": 256, "label_list": ["no_ref", "neutral", "positive", "negative"], "pattern_id": 0, "verbalizer_file": null, "cache_dir": ""} |