Update README.md
Browse files
README.md
CHANGED
|
@@ -4,32 +4,29 @@ tags:
|
|
| 4 |
- sentence-transformers
|
| 5 |
- feature-extraction
|
| 6 |
- sentence-similarity
|
|
|
|
| 7 |
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# {
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
<!--- Describe your model here -->
|
| 15 |
|
| 16 |
## Usage (Sentence-Transformers)
|
| 17 |
|
| 18 |
-
Using this model becomes easy when you have
|
| 19 |
-
|
| 20 |
```
|
| 21 |
-
pip install
|
| 22 |
```
|
| 23 |
|
| 24 |
Then you can use the model like this:
|
| 25 |
|
| 26 |
```python
|
| 27 |
-
from
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
model = SentenceTransformer('{MODEL_NAME}')
|
| 31 |
-
embeddings = model.encode(sentences)
|
| 32 |
-
print(embeddings)
|
| 33 |
```
|
| 34 |
|
| 35 |
|
|
|
|
| 4 |
- sentence-transformers
|
| 5 |
- feature-extraction
|
| 6 |
- sentence-similarity
|
| 7 |
+
- setfit classification
|
| 8 |
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# {setfit classification model}
|
| 12 |
|
| 13 |
+
this is a setfit classifier which can be used for conversion or other , binary classification
|
| 14 |
|
| 15 |
<!--- Describe your model here -->
|
| 16 |
|
| 17 |
## Usage (Sentence-Transformers)
|
| 18 |
|
| 19 |
+
Using this model becomes easy when you have SetFit installed,
|
|
|
|
| 20 |
```
|
| 21 |
+
pip install setfit
|
| 22 |
```
|
| 23 |
|
| 24 |
Then you can use the model like this:
|
| 25 |
|
| 26 |
```python
|
| 27 |
+
from setfit import SetFitModel, SetFitTrainer
|
| 28 |
+
model = SetFitModel.from_pretrained("nayan06/binary-classifier-conversion-intent-1.0")
|
| 29 |
+
preds = model(["view details"])
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|
| 31 |
|
| 32 |
|