Instructions to use mrin/SetFit_on_Disaster_tweets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mrin/SetFit_on_Disaster_tweets with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mrin/SetFit_on_Disaster_tweets") 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 mrin/SetFit_on_Disaster_tweets with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mrin/SetFit_on_Disaster_tweets") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Add SetFit model
Browse files- model_head.pkl +1 -1
- pytorch_model.bin +1 -1
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7663
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53a0327e77e6d1b14d3afadb076dc17297c56ae747134591074cae37f0a8d0f3
|
| 3 |
size 7663
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 438012073
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:885609f1215ea9c0251960eb8c9d853655404f3ba2f2cb1270eed6955025676a
|
| 3 |
size 438012073
|