NLTK in IronPython from WPF

╄→гoц情女王★ 提交于 2019-12-20 16:21:24

问题


I would like to use NLTK (Natural Language Toolkit) for Python using IronPython and call from an exisiting WPF/c# project.

Is it possible to reference NLTK from within WPF in this way. For example to use Named Entity Recognition from NTLK?

Any advice or guidance appreciated.


回答1:


It definitely is possible, as long as NLTK doesn't use any C extensions. It will be much easier if you use VS2010 though, because of the dynamic keyword. Look at the Microsoft.Scripting.Hosting library from IronPython, it will get you started towards loading the NLTK code and executing methods on it.



来源:https://stackoverflow.com/questions/2318335/nltk-in-ironpython-from-wpf

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