Describe the bug
对“半丝半缕”进行语义依存分析,结果中有个mQuaf的语义关系在CSDP中找不到
Code to reproduce the issue
import hanlp
HanLP = hanlp.load(hanlp.pretrained.mtl.CLOSE_TOK_POS_NER_SRL_DEP_SDP_CON_ELECTRA_SMALL_ZH)
a = HanLP(['半丝半缕'])
print(a)
{
"tok/fine": [
["半", "丝", "半", "缕"]
],
"tok/coarse": [
["半", "丝", "半", "缕"]
],
"pos/ctb": [
["CD", "M", "CD", "M"]
],
"pos/pku": [
["m", "q", "m", "Ng"]
],
"pos/863": [
["m", "n", "m", "n"]
],
"ner/msra": [
[]
],
"ner/pku": [
[]
],
"ner/ontonotes": [
[]
],
"srl": [
[]
],
"dep": [
[[2, "nummod"], [4, "clf"], [4, "nummod"], [0, "root"]]
],
"sdp": [
[[[2, "Quan"]], [[3, "mQuaf"]], [[4, "Quan"]], [[0, "Root"], [2, "eCoo"]]]
],
"con": [
["TOP", [["QP", [["QP", [["CD", ["半"]], ["CLP", [["M", ["丝"]]]]]], ["QP", [["QP", [["CD", ["半"]]]], ["CLP", [["M", ["缕"]]]]]]]]]]
]
}
System information
- MacOS 12.7.6
- Python version: 3.10.19
- HanLP version: 2.1.3
Describe the bug
对“半丝半缕”进行语义依存分析,结果中有个mQuaf的语义关系在CSDP中找不到
Code to reproduce the issue
{ "tok/fine": [ ["半", "丝", "半", "缕"] ], "tok/coarse": [ ["半", "丝", "半", "缕"] ], "pos/ctb": [ ["CD", "M", "CD", "M"] ], "pos/pku": [ ["m", "q", "m", "Ng"] ], "pos/863": [ ["m", "n", "m", "n"] ], "ner/msra": [ [] ], "ner/pku": [ [] ], "ner/ontonotes": [ [] ], "srl": [ [] ], "dep": [ [[2, "nummod"], [4, "clf"], [4, "nummod"], [0, "root"]] ], "sdp": [ [[[2, "Quan"]], [[3, "mQuaf"]], [[4, "Quan"]], [[0, "Root"], [2, "eCoo"]]] ], "con": [ ["TOP", [["QP", [["QP", [["CD", ["半"]], ["CLP", [["M", ["丝"]]]]]], ["QP", [["QP", [["CD", ["半"]]]], ["CLP", [["M", ["缕"]]]]]]]]]] ] }System information