P0L3 commited on
Commit
2ad96b3
·
verified ·
1 Parent(s): d896049

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -2
README.md CHANGED
@@ -186,14 +186,21 @@ pip install span_marker
186
  from span_marker import SpanMarkerModel
187
 
188
  # Download from the 🤗 Hub
189
- model = SpanMarkerModel.from_pretrained("your-huggingface-username/your-model-name")
190
 
191
  # Run inference
192
- text = "Measurements from single moorings at each gateway reveal that the speed of bottom water flow into the Australian Antarctic Basin varies with location , season and density ( Fig . 3a , c , e ) ."
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
 
186
  from span_marker import SpanMarkerModel
187
 
188
  # Download from the 🤗 Hub
189
+ model = SpanMarkerModel.from_pretrained("P0L3/CliReNER-roberta-base")
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
+ # Entity: climate change | Label: Meteorological Phenomenon | Score: 0.4065
199
+ # Entity: weather patterns | Label: Meteorological Phenomenon | Score: 0.6808
200
+ # Entity: climate extremes | Label: Meteorological Phenomenon | Score: 0.7115
201
+ # Entity: nature | Label: Other | Score: 0.4608
202
+ # Entity: human systems | Label: System | Score: 0.6562
203
+ # Entity: IPCC 2023 | Label: Other | Score: 0.4812
204
  ```
205
 
206
  ### Downstream Use