Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Stanford nlp 如何在TypedDependence中保留标点符号? 汉语语法结构gs=新汉语语法结构(t); 集合tdl=gs.typedDependenciesCollapsed();_Stanford Nlp - Fatal编程技术网

Stanford nlp 如何在TypedDependence中保留标点符号? 汉语语法结构gs=新汉语语法结构(t); 集合tdl=gs.typedDependenciesCollapsed();

Stanford nlp 如何在TypedDependence中保留标点符号? 汉语语法结构gs=新汉语语法结构(t); 集合tdl=gs.typedDependenciesCollapsed();,stanford-nlp,Stanford Nlp,我试着打印gs和tdl,gs保留标点,而tdl丢失标点。在使用stanford parser 3.9.1时,如何在将语法结构转换为typedDependencies的同时保留标点?似乎stanford parser很难解决这个问题,有相同问题的人可以尝试corenlp ChineseGrammaticalStructure gs = new ChineseGrammaticalStructure(t); Collection<TypedDependency> tdl = gs.typ

我试着打印gs和tdl,gs保留标点,而tdl丢失标点。在使用stanford parser 3.9.1时,如何在将语法结构转换为typedDependencies的同时保留标点?

似乎stanford parser很难解决这个问题,有相同问题的人可以尝试corenlp

ChineseGrammaticalStructure gs = new ChineseGrammaticalStructure(t);
Collection<TypedDependency> tdl = gs.typedDependenciesCollapsed();