2

我遇到并成功使用了 python NLP POS 标记器。问题是我的代码在 c# 中,我使用了 python pos 标记器,因为我找不到好的 c# pos 标记器。现在,我不知道如何使用它我的 c# 代码中的 python NLP POS 标记器。有人可以指导我吗?另外请建议任何 C# POS 标记器。谢谢

编辑:
我想过使用 IronPython 来使用 python NLP POS 标记器。但是当我使用时import nltk,我得到了一个ImportError:No module named nltk
在 python2.6 中使用时相同的命令运行得非常好。

4

2 回答 2

2

您可以使用SharpNLP项目。

于 2011-12-21T19:28:30.343 回答
0

If you really want to keep using the NLP tagger for python, you can always try and host it with the DLR: http://blogs.msdn.com/b/srivatsn/archive/2008/09/16/hosting-ironpython-made-easier.aspx

于 2011-12-21T19:42:34.737 回答