DarrenChensformer commited on
Commit
4d56c42
·
1 Parent(s): 6e27aba

Remove empty line

Browse files
Files changed (1) hide show
  1. README.md +0 -3
README.md CHANGED
@@ -26,7 +26,6 @@ pinned: false
26
 
27
  ```python
28
  import evaluate
29
-
30
  valid_labels = [
31
  "/開箱",
32
  "/教學",
@@ -38,7 +37,6 @@ valid_labels = [
38
  "/推薦/其他",
39
  ""
40
  ]
41
-
42
  predictions = [
43
  ["/開箱/xxx", "/教學/yyy", "/表達/zzz"],
44
  ["/分享/外部資訊/aaa", "/教學/yyy", "/表達/zzz", "/分享/個人資訊/bbb"]
@@ -47,7 +45,6 @@ references = [
47
  ["/開箱/xxx", "/教學/yyy", "/表達/zzz"],
48
  ["/推薦/產品/bbb", "/教學/yyy", "/表達/zzz"]
49
  ]
50
-
51
  metric = evaluate.load("DarrenChensformer/action_generation")
52
  result = metric.compute(predictions=predictions, references=references, valid_labels=valid_labels, detailed_scores=True)
53
  print(result)
 
26
 
27
  ```python
28
  import evaluate
 
29
  valid_labels = [
30
  "/開箱",
31
  "/教學",
 
37
  "/推薦/其他",
38
  ""
39
  ]
 
40
  predictions = [
41
  ["/開箱/xxx", "/教學/yyy", "/表達/zzz"],
42
  ["/分享/外部資訊/aaa", "/教學/yyy", "/表達/zzz", "/分享/個人資訊/bbb"]
 
45
  ["/開箱/xxx", "/教學/yyy", "/表達/zzz"],
46
  ["/推薦/產品/bbb", "/教學/yyy", "/表達/zzz"]
47
  ]
 
48
  metric = evaluate.load("DarrenChensformer/action_generation")
49
  result = metric.compute(predictions=predictions, references=references, valid_labels=valid_labels, detailed_scores=True)
50
  print(result)