简体   繁体   English

如何在C#代码中使用python NLP POS标记器?

[英]How to use python NLP POS tagger in C# code?

I came across and successfully used a python NLP POS tagger.The problem is that my code was in c# and I used a python pos tagger because I could not find a good c# pos tagger.Now,I don't know how to use this python NLP POS tagger in my c# code.Could anyone guide me?Also please do suggest any C# POS tagger.Thankx 我偶然发现并成功使用了python NLP POS标记器。问题是我的代码在c#中,我使用了python pos标记器,因为找不到合适的c#pos标记器。现在,我不知道该如何使用我的C#代码中的python NLP POS标记器。有人可以指导我吗?也请建议使用任何C#POS标记器。

EDIT: 编辑:
I thought of using IronPython for using the python NLP POS tagger.But when I use import nltk ,I get an ImportError:No module named nltk 我曾考虑过使用IronPython来使用python NLP POS标记器。但是当我使用import nltk ,我得到一个ImportError:No module named nltk
The same command when used in python2.6 had worked perfectly fine. 在python2.6中使用相同的命令时效果很好。

您可以使用SharpNLP项目。

如果您确实想继续为Python使用NLP标记器,则可以随时尝试使用DLR托管它: http : //blogs.msdn.com/b/srivatsn/archive/2008/09/16/hosting-ironpython-定制easier.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM