5

我想使用 IronPython 为 Python 使用 NLTK(自然语言工具包)并从现有的 WPF/c# 项目中调用。

是否可以以这种方式从 WPF 中引用 NLTK。例如使用 NTLK 的命名实体识别?

任何建议或指导表示赞赏。

4

1 回答 1

2

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.

于 2010-02-23T17:34:56.413 回答