Text Classification
setfit
Safetensors
sentence-transformers
mpnet
absa
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use RagN/ABSA-aspect with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use RagN/ABSA-aspect with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("RagN/ABSA-aspect") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use RagN/ABSA-aspect with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("RagN/ABSA-aspect") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from RagN/ABSA-aspect: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/RagN/ABSA-aspect/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://RagN/ABSA-aspect/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/RagN/ABSA-aspect/resolve/main/sentence_bert_config.json
53 Bytes
| { | |
| "max_seq_length": 512, | |
| "do_lower_case": false | |
| } |