python的NLTK中的荷兰语语法

2024-05-29 03:03:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在研究荷兰语语料库,我想知道NLTK是否有荷兰语语法嵌入其中,这样我就可以分析我的句子了?一般来说,NLTK只适用于英语吗?我知道它有Alpino-dutch copora,但是没有迹象表明这些函数(比如使用cfg进行解析)也是为荷兰语设计的。 谢谢


Tags: 函数语法cfg句子语料库nltkalpinodutch
2条回答

我没有一个直接的答案,但通过结合以下两页的信息,你应该能够找到答案。 Here you can find an overview of the high-level parsing interface在NLTK中。解析器需要一个模型,如果模型存在,它将在data packages that ships with nltk文档的页面中列出。在

正如您已经知道的,Alpino-Dutch Treebank是随NLTK一起提供的,因此在最坏的情况下,您应该能够自己学习模型(解析器api还提供学习工具)。在

希望能有所帮助。在

以下是对我的邮件的回复,史蒂文·伯德是NLTK一书的作者之一:

NLTK can work for parsing Dutch if you supply the grammar rules. Please consult the NLTK book for guidance: http://www.nltk.org/book You might be able to use the Alpino corpus in order to develop the grammar (or to train a statistical parser). If your primary interest is obtaining parsed sentences of Dutch, I recommend that you try to find an existing parser rather than developing your own.

最后,我使用了Alpino解析器,它非常强大,是用Prolog编写的,但是我设法在python中移植(二进制版本)。在

相关问题 更多 >

    热门问题