Update README.md
Browse files
README.md
CHANGED
|
@@ -51,10 +51,12 @@ from setfit import SetFitModel
|
|
| 51 |
|
| 52 |
model = SetFitModel.from_pretrained("ilyankou/spatial-classifier")
|
| 53 |
preds = model([
|
| 54 |
-
"
|
| 55 |
-
"
|
|
|
|
|
|
|
| 56 |
])
|
| 57 |
-
# => [1, 0]
|
| 58 |
```
|
| 59 |
|
| 60 |
## Training
|
|
|
|
| 51 |
|
| 52 |
model = SetFitModel.from_pretrained("ilyankou/spatial-classifier")
|
| 53 |
preds = model([
|
| 54 |
+
"nearest hospital",
|
| 55 |
+
"far from the truth",
|
| 56 |
+
"close to my heart",
|
| 57 |
+
"flood risk in this area"
|
| 58 |
])
|
| 59 |
+
# => [1, 0, 0, 1]
|
| 60 |
```
|
| 61 |
|
| 62 |
## Training
|