Initial README
Browse files
README.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
### Trained Using Sentence-Transformers
|
6 |
+
|
7 |
+
#### Usage
|
8 |
+
```
|
9 |
+
sentence = "During its monthly call, the National Oceanic and Atmospheric Administration warned of increased temperatures and low precipitation"
|
10 |
+
labels = ["Computer", "Climate Change", "Tablet", "Football", "Artificial Intelligence", "Global Warming"]
|
11 |
+
|
12 |
+
scores = model.predict([[sentence, l] for l in labels])
|
13 |
+
print(scores)
|
14 |
+
#array([0.04118565, 0.2435827 , 0.03941465, 0.00203637, 0.00501176, 0.1423797], dtype=float32)
|
15 |
+
|
16 |
+
```
|