Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NLTK in IronPython from WPF

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.

like image 218
Sam Tr Avatar asked Nov 06 '22 16:11

Sam Tr


1 Answers

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.

like image 64
Ana Betts Avatar answered Nov 15 '22 06:11

Ana Betts