Commit
•
5cba335
1
Parent(s):
0cce1c7
Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,7 @@ tags:
|
|
8 |
|
9 |
---
|
10 |
|
11 |
-
# {
|
12 |
|
13 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
14 |
|
@@ -19,16 +19,16 @@ This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentence
|
|
19 |
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
|
20 |
|
21 |
```
|
22 |
-
pip install
|
23 |
```
|
24 |
|
25 |
Then you can use the model like this:
|
26 |
|
27 |
```python
|
28 |
-
from
|
29 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
30 |
|
31 |
-
model =
|
32 |
embeddings = model.encode(sentences)
|
33 |
print(embeddings)
|
34 |
```
|
|
|
8 |
|
9 |
---
|
10 |
|
11 |
+
# {SetFit Sentiment Classifier}
|
12 |
|
13 |
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
14 |
|
|
|
19 |
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
|
20 |
|
21 |
```
|
22 |
+
pip install setfit
|
23 |
```
|
24 |
|
25 |
Then you can use the model like this:
|
26 |
|
27 |
```python
|
28 |
+
from setfit import SetFitModel
|
29 |
sentences = ["This is an example sentence", "Each sentence is converted"]
|
30 |
|
31 |
+
model = SetFitModel.from_pretrained("nixmaverick1997/app-setfit-classifier")
|
32 |
embeddings = model.encode(sentences)
|
33 |
print(embeddings)
|
34 |
```
|