Instructions to use mhammadkhan/negation-categories-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mhammadkhan/negation-categories-classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mhammadkhan/negation-categories-classifier") 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] - setfit
How to use mhammadkhan/negation-categories-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mhammadkhan/negation-categories-classifier") - Notebooks
- Google Colab
- Kaggle
Commit ·
40f56ac
1
Parent(s): 7f09d3e
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,8 @@ tags:
|
|
| 5 |
- sentence-transformers
|
| 6 |
- text-classification
|
| 7 |
pipeline_tag: text-classification
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# mhammadkhan/negation-categories-classifier
|
|
@@ -75,4 +77,4 @@ publisher = {arXiv},
|
|
| 75 |
year = {2022},
|
| 76 |
copyright = {Creative Commons Attribution 4.0 International}
|
| 77 |
}
|
| 78 |
-
```
|
|
|
|
| 5 |
- sentence-transformers
|
| 6 |
- text-classification
|
| 7 |
pipeline_tag: text-classification
|
| 8 |
+
language:
|
| 9 |
+
- es
|
| 10 |
---
|
| 11 |
|
| 12 |
# mhammadkhan/negation-categories-classifier
|
|
|
|
| 77 |
year = {2022},
|
| 78 |
copyright = {Creative Commons Attribution 4.0 International}
|
| 79 |
}
|
| 80 |
+
```
|