Update README.md
Browse files
README.md
CHANGED
@@ -5,8 +5,9 @@ license: mit
|
|
5 |
### Trained Using Sentence-Transformers
|
6 |
|
7 |
#### Usage
|
8 |
-
```
|
9 |
-
sentence = "During its monthly call, the National Oceanic and Atmospheric Administration warned of
|
|
|
10 |
labels = ["Computer", "Climate Change", "Tablet", "Football", "Artificial Intelligence", "Global Warming"]
|
11 |
|
12 |
scores = model.predict([[sentence, l] for l in labels])
|
|
|
5 |
### Trained Using Sentence-Transformers
|
6 |
|
7 |
#### Usage
|
8 |
+
```python
|
9 |
+
sentence = "During its monthly call, the National Oceanic and Atmospheric Administration warned of \
|
10 |
+
increased temperatures and low precipitation"
|
11 |
labels = ["Computer", "Climate Change", "Tablet", "Football", "Artificial Intelligence", "Global Warming"]
|
12 |
|
13 |
scores = model.predict([[sentence, l] for l in labels])
|