Samuel Scheidegger
commited on
Commit
·
03da1c5
1
Parent(s):
c32c4c1
Update examples.
Browse files
README.md
CHANGED
|
@@ -35,15 +35,14 @@ pipe = pipeline("text-classification", model=model,
|
|
| 35 |
|
| 36 |
|
| 37 |
# Climate related text
|
| 38 |
-
text = '
|
| 39 |
output = pipe(text)
|
| 40 |
-
print(output) # [{'label': 'LABEL_1', 'score': 0.
|
| 41 |
-
|
| 42 |
|
| 43 |
# Non-climate related text
|
| 44 |
-
text = '
|
| 45 |
output = pipe(text)
|
| 46 |
-
print(output) # [{'label': 'LABEL_0', 'score': 0.
|
| 47 |
```
|
| 48 |
|
| 49 |
## Limitations
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
# Climate related text
|
| 38 |
+
text = 'This issue represents around 10% of the outstanding volume of green sovereign bonds and will used to finance Germany’s climate and environmental strategy.'
|
| 39 |
output = pipe(text)
|
| 40 |
+
print(output) # [{'label': 'LABEL_1', 'score': 0.9974282383918762}]
|
|
|
|
| 41 |
|
| 42 |
# Non-climate related text
|
| 43 |
+
text = 'Our model, based on a customer-centric universal banking relationship, therefore demonstrated its resilience and usefulness for all stakeholders in all our regions.'
|
| 44 |
output = pipe(text)
|
| 45 |
+
print(output) # [{'label': 'LABEL_0', 'score': 0.9931207299232483}]
|
| 46 |
```
|
| 47 |
|
| 48 |
## Limitations
|