用 MaltParser engmalt 解析 [英] Parsing with MaltParser engmalt

查看:31
本文介绍了用 MaltParser engmalt 解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用预训练的解析模型 engmalt.我下载了,解压到我下载MaltParser的目录下,在提示里写

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

按照 MalParser 站点的建议.问题是它给了我这个错误:

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

找不到 mco 文件../malt-1.4.1/engmaltpoly.mco"中的文件条目engmaltpoly_single.info".

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

有人可以帮我吗?我正在使用 Windows7 和 jre6.如何将网站下载的文件夹(engmalt.poly)打包成.mco文件?

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?

非常感谢!!!

推荐答案

我认为您不应该为模型文件名添加任何扩展名.所以试一试:

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 解析"

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

这篇关于用 MaltParser engmalt 解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆