[IronPython] NLTK in C# application?

William Johnston williamj at tenbase2.com
Thu Jun 10 15:57:53 CEST 2010



In order for NLTK to work, I need to install PyYaml.

However, the PyYaml installer does not recognize the IronPython installation
in the Registry.

How do I alter the registry?




From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Thursday, June 10, 2010 7:11 AM
To: Discussion of IronPython
Subject: Re: [IronPython] NLTK in C# application?


On 10/06/2010 12:05, William Johnston wrote: 




How do I include the NLTK modules in a C# application?


There is already code for embedded Python.


The first step is to try importing it and running some examples from in
IronPython. If that works then you just need to provide a 'bridge' layer
that embeds IronPython in your C# app and allows you to call into IronPython
to use NLTK.

If NLTK *doesn't* work from IronPython it will probably be because it uses C
extension modules not available in IronPython. One way round this is to use
Ironclad. Again, try some NLTK examples from IronPython but with Ironclad
and see if that works. 


If it still doesn't work it may be worth reporting back here with the
problems to see if they are resolvable.

All the best,

Michael Foord




Users mailing list
Users at lists.ironpython.com

READ CAREFULLY. By accepting and reading this email you agree, on behalf of
your employer, to release me from all obligations and waivers arising from
any and all NON-NEGOTIATED agreements, licenses, terms-of-service,
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure,
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have
entered into with your employer, its partners, licensors, agents and
assigns, in perpetuity, without prejudice to my ongoing rights and
privileges. You further represent that you have the authority to release me
from any BOGUS AGREEMENTS on behalf of your employer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100610/6f154ba5/attachment.html>

More information about the Ironpython-users mailing list