[IronPython] NLTK in C# application?
Michael Foord
fuzzyman at voidspace.org.uk
Thu Jun 10 17:28:58 CEST 2010
On 10/06/2010 14:57, William Johnston wrote:
>
> Hello,
>
>
> 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?
>
I don't know - the folks on the pywin32 mailing list could probably tell
you. An easier route would be to install Python, then install PyYaml,
then either copy the files to somewhere on sys.path for IronPython (or
add your Python site-packages folder to sys.path in your IronPython code).
All the best,
Michael Foord
> Thanks.
>
> *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:
>
> Hello,
>
> 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.
>
> http://www.resolversystems.com/products/ironclad/
>
> 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
>
>
> Thanks.
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>
> 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.
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
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/8add6cc1/attachment.html>
More information about the Ironpython-users
mailing list