Samuel Scheidegger commited on
Commit
03da1c5
·
1 Parent(s): c32c4c1

Update examples.

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -35,15 +35,14 @@ pipe = pipeline("text-classification", model=model,
35
 
36
 
37
  # Climate related text
38
- text = 'In one case, it was decided not to pursue commercial opportunities based on its recommendation, while in other cases, specific conditions for managing environmental and social risks were imposed.'
39
  output = pipe(text)
40
- print(output) # [{'label': 'LABEL_1', 'score': 0.9939790964126587}]
41
-
42
 
43
  # Non-climate related text
44
- text = 'Major updates were brought to this software in order to optimise the management and monitoring of expenses under the agreement in 2015.'
45
  output = pipe(text)
46
- print(output) # [{'label': 'LABEL_0', 'score': 0.9936821460723877}]
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