yuyijiong commited on
Commit
869931b
·
1 Parent(s): 83cb3c8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -23,13 +23,17 @@ pinned: false
23
  ```python
24
  import evaluate
25
 
26
- module = evaluate.load("yuyijiong/my_metric")
27
 
28
  predictions=["food | good | food#taste | pos"]
29
  references=["food | good | food#taste | pos & service | bad | service#general | neg"]
30
 
31
- module.compute(predictions=predictions, references=references)
 
32
 
 
 
 
33
  ```
34
 
35
  ### Inputs
@@ -69,5 +73,3 @@ module.compute(predictions=predictions, references=references)
69
  ## Citation
70
  *论文即将发表*
71
 
72
- ## Further References
73
- *Add any useful further references.*
 
23
  ```python
24
  import evaluate
25
 
26
+ module = evaluate.load("yuyijiong/quad_match_score")
27
 
28
  predictions=["food | good | food#taste | pos"]
29
  references=["food | good | food#taste | pos & service | bad | service#general | neg"]
30
 
31
+ result=module.compute(predictions=predictions, references=references)
32
+ print(result)
33
 
34
+ {'ave match score of weight (1, 1, 1, 1)': 0.375,
35
+ 'f1 score of exact match': 0.0,
36
+ 'f1 score of optimal match of weight (1, 1, 1, 1)': 0.5}
37
  ```
38
 
39
  ### Inputs
 
73
  ## Citation
74
  *论文即将发表*
75