Update README.md
Browse files
README.md
CHANGED
@@ -15,6 +15,17 @@ metrics:
|
|
15 |
```
|
16 |
'对象1 | 观点1 | 方面1 | 情感极性1 & 对象2 | 观点2 | 方面2 | 情感极性2 ......'
|
17 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
支持以下情感分析任务
|
19 |
```
|
20 |
["四元组(对象 | 观点 | 方面 | 极性)",
|
|
|
15 |
```
|
16 |
'对象1 | 观点1 | 方面1 | 情感极性1 & 对象2 | 观点2 | 方面2 | 情感极性2 ......'
|
17 |
```
|
18 |
+
|
19 |
+
可以使用yuyijiong/quad_match_score评估指标进行评估
|
20 |
+
```python
|
21 |
+
import evaluate
|
22 |
+
module = evaluate.load("yuyijiong/quad_match_score")
|
23 |
+
predictions=["food | good | food#taste | pos"]
|
24 |
+
references=["food | good | food#taste | pos & service | bad | service#general | neg"]
|
25 |
+
result=module.compute(predictions=predictions, references=references)
|
26 |
+
print(result)
|
27 |
+
```
|
28 |
+
|
29 |
支持以下情感分析任务
|
30 |
```
|
31 |
["四元组(对象 | 观点 | 方面 | 极性)",
|