raptorkwok commited on
Commit
868038e
·
1 Parent(s): e6953e3

added SDK configuration

Browse files
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: evaluate
3
+ emoji: 🤗
4
+ colorFrom: blue
5
+ colorTo: red
6
+ datasets:
7
+ - raptorkwok/cantonese-traditional-chinese-parallel-corpus-gen3
8
+ tags:
9
+ - nlp
10
+ - translation
11
+ - chinese
12
+ - meteor
13
+ - jieba
14
+ description: A BLEU implementation dedicated for Chinese sentences
15
+ sdk: gradio
16
+ sdk_version: 3.19.1
17
+ app_file: app.py
18
+ pinned: false
19
+ ---
20
+
21
+ # # Metric Card for ChineseMETEOR
22
+
23
+ Chinese METEOR Implementation
24
+
25
+ ```python
26
+ import evaluate
27
+ meteor = evaluate.load("raptorkwok/chinese_meteor")
28
+ results = meteor.compute(
29
+ predictions=["我在這裡吃飯"],
30
+ references=["我在這裡吃飯"]
31
+ )
32
+ print(results)
33
+ # {'meteor': 1.0}
README.md CHANGED
@@ -1,17 +1,26 @@
1
  ---
2
  library_name: evaluate
 
 
 
 
 
3
  tags:
4
  - nlp
5
  - translation
6
  - chinese
7
  - meteor
8
  - jieba
9
- license: apache-2.0
 
 
 
 
10
  ---
11
 
12
- # METEOR (Chinese) with Jieba
13
 
14
- Classic METEOR score, but **pre-segmented with Jieba** so it works on raw Chinese text.
15
 
16
  ```python
17
  import evaluate
 
1
  ---
2
  library_name: evaluate
3
+ emoji: 🤗
4
+ colorFrom: blue
5
+ colorTo: red
6
+ datasets:
7
+ - raptorkwok/cantonese-traditional-chinese-parallel-corpus-gen3
8
  tags:
9
  - nlp
10
  - translation
11
  - chinese
12
  - meteor
13
  - jieba
14
+ description: A BLEU implementation dedicated for Chinese sentences
15
+ sdk: gradio
16
+ sdk_version: 3.19.1
17
+ app_file: app.py
18
+ pinned: false
19
  ---
20
 
21
+ # # Metric Card for ChineseMETEOR
22
 
23
+ Chinese METEOR Implementation
24
 
25
  ```python
26
  import evaluate