P0L3 commited on
Commit
bb231bc
·
verified ·
1 Parent(s): 1a19b64

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -189,11 +189,24 @@ from span_marker import SpanMarkerModel
189
  model = SpanMarkerModel.from_pretrained("P0L3/CliReNER-bert-base-uncased")
190
 
191
  # Run inference
192
- text = "Anthropogenic climate change is fundamentally altering weather patterns and climate extremes, causing widespread adverse impacts to both nature and human systems (IPCC 2023)."
193
  entities = model.predict(text)
194
 
195
  for entity in entities:
196
  print(f"Entity: {entity['span']} | Label: {entity['label']} | Score: {entity['score']:.4f}")
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  ```
198
 
199
  ### Downstream Use
 
189
  model = SpanMarkerModel.from_pretrained("P0L3/CliReNER-bert-base-uncased")
190
 
191
  # Run inference
192
+ text = "In the atmosphere, the frequency of extreme events is projected to rise sharply; for example, Chapman et al. (2023) show that in regions such as East Africa, without significant emission reductions, a historical 1-in-100-year rainfall event could become a 1-in-23-year occurrence by the end of the century. "
193
  entities = model.predict(text)
194
 
195
  for entity in entities:
196
  print(f"Entity: {entity['span']} | Label: {entity['label']} | Score: {entity['score']:.4f}")
197
+
198
+ # Entity: atmosphere | Label: Location | Score: 0.3388
199
+ # Entity: frequency | Label: Quantity | Score: 0.7958
200
+ # Entity: extreme events | Label: Meteorological Phenomenon | Score: 0.5825
201
+ # Entity: Chapman et al. | Label: Person | Score: 0.9214
202
+ # Entity: 2023 | Label: Time Period | Score: 0.9920
203
+ # Entity: regions | Label: Location | Score: 0.9397
204
+ # Entity: emission reductions | Label: Physical Phenomenon | Score: 0.5641
205
+ # Entity: 1-in-100-year | Label: Time Period | Score: 0.8089
206
+ # Entity: rainfall event | Label: Meteorological Phenomenon | Score: 0.6794
207
+ # Entity: 1-in-23-year | Label: Time Period | Score: 0.6802
208
+ # Entity: end of the century | Label: Time Period | Score: 0.9589
209
+
210
  ```
211
 
212
  ### Downstream Use