Parsing with MaltParser engmalt

五迷三道 提交于 2019-12-12 02:45:53

问题


I'm trying to use the pretrained parsing model engmalt. I downloaded it, I unpacked it in the directory where I downloaded the MaltParser, and I wrote in the prompt

java -Xmx1024m -jar malt.jar -c engmalt.poly -i infile.conll -o outfile.conll -m parse

as suggested in MalParser site. The problem is that it gives me this error:

the file entry "engmaltpoly_single.info" in the mco file "../malt-1.4.1/engmaltpoly.mco" cannot be found.

Can someone help me? I'm working with Windows7 and jre6. How can I pack the folder downloaded from the site(engmalt.poly) in a file .mco?

Thanks a lot!!!


回答1:


I think you are not suppose to add any extension to model file name. So give a try as:

"java -Xmx1024m -jar malt.jar -c engmalt -i infile.conll -o outfile.conll -m parse"



来源:https://stackoverflow.com/questions/3944269/parsing-with-maltparser-engmalt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!