stanford-parser-full-2013-06-20

 

parser:

corenlp:

 

standford的语法树是真的伤到我了,一直报告内存不足的问题,就算分配了Xmx64g都不够用的,尴尬,最后发现问题的原因,是因为我,在预处理的时候去掉了标点符号——》这样他就认为整个文档是一个句子了,所以导致内存的溢出问题。

 

后来在每段话后面添加了“.", 可以正常运行了,不知道结果会如何。

command list in below:

java -Xmx16g -cp "stanford-parser-full-2013-06-20/*:" edu.stanford.nlp.parser.lexparser.LexicalizedParser -outputFormat "penn" edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz stanford-parser-full-2013-06-20/data/testsent.txt >testsent.tree 

 

java -Xmx16g -cp "stanford-parser-full-2013-06-20/*:" edu.stanford.nlp.trees.EnglishGrammaticalStructure -treeFile testsent.tree -conllx >my.conllx

 

这个命令的结果比较符合格式要求(CoNLL X (CoNLL 2006) format),corenlp的缺失项太多了

>表示文件输出

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值