Ikala-allen commited on
Commit
2438bff
1 Parent(s): 1e03f3b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -98,7 +98,7 @@ print(scores)
98
  >>> {'tp': 1, 'fp': 1, 'fn': 2, 'p': 50.0, 'r': 33.333333333333336, 'f1': 40.0, 'Macro_f1': 25.0, 'Macro_p': 25.0, 'Macro_r': 25.0}
99
  ```
100
 
101
- Example 2 : Two or more prediction and reference, Output all relation type score
102
  ```python
103
  metric = evaluate.load("Ikala-allen/relation_extraction")
104
  references = [
@@ -126,7 +126,7 @@ print(scores)
126
  >>> {'sell': {'tp': 3, 'fp': 1, 'fn': 0, 'p': 75.0, 'r': 100.0, 'f1': 85.71428571428571}, 'belongs_to': {'tp': 0, 'fp': 0, 'fn': 1, 'p': 0, 'r': 0, 'f1': 0}, 'ALL': {'tp': 3, 'fp': 1, 'fn': 1, 'p': 75.0, 'r': 75.0, 'f1': 75.0, 'Macro_f1': 42.857142857142854, 'Macro_p': 37.5, 'Macro_r': 50.0}}
127
  ```
128
 
129
- Example 3 : Two or more prediction and reference. Output all relation type score. Only consider score of type "belongs_to".
130
  ```python
131
  metric = evaluate.load("Ikala-allen/relation_extraction")
132
  references = [
 
98
  >>> {'tp': 1, 'fp': 1, 'fn': 2, 'p': 50.0, 'r': 33.333333333333336, 'f1': 40.0, 'Macro_f1': 25.0, 'Macro_p': 25.0, 'Macro_r': 25.0}
99
  ```
100
 
101
+ Example 2 : Two or more prediction and reference. Output all score of relation type.
102
  ```python
103
  metric = evaluate.load("Ikala-allen/relation_extraction")
104
  references = [
 
126
  >>> {'sell': {'tp': 3, 'fp': 1, 'fn': 0, 'p': 75.0, 'r': 100.0, 'f1': 85.71428571428571}, 'belongs_to': {'tp': 0, 'fp': 0, 'fn': 1, 'p': 0, 'r': 0, 'f1': 0}, 'ALL': {'tp': 3, 'fp': 1, 'fn': 1, 'p': 75.0, 'r': 75.0, 'f1': 75.0, 'Macro_f1': 42.857142857142854, 'Macro_p': 37.5, 'Macro_r': 50.0}}
127
  ```
128
 
129
+ Example 3 : Two or more prediction and reference. Output all score of relation type. Consider only the score of type "belongs_to".
130
  ```python
131
  metric = evaluate.load("Ikala-allen/relation_extraction")
132
  references = [