Home arrow static arrow Java Programming [Archive] - Python classes in Java
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Python classes in Java
3 Duke Stars available
This topic has 3 replies on 1 page.

Posts:11
Registered: 1/31/03
Python classes in Java  
Jul 1, 2004 4:19 AM



 
Hi everyone,

Does anyone know how to call python classes and use them in a Java program. I know that Java has its own regex classes but I am not sure if it uses NLTK (Natural Language Toolkit ). Python uses NLTK so I have the classes written in python but I am not sure how to use them and pass and receive variable values from them.

Any help appreciated.

thanks
 

Posts:11,186
Registered: 06.04.04
Re: Python classes in Java  
Jul 1, 2004 4:40 AM (reply 1 of 3)



 
Maybe [url=http://www.jython.org/]this link[/url] can help you out. It's about 'Jython', a Python implementation
in Java. Some folks in my vicinity are quite enthousiastic about it ...

kind regards,

Jos
 

Posts:11
Registered: 1/31/03
Re: Python classes in Java  
Jul 1, 2004 7:42 AM (reply 2 of 3)



 
Hi,

Yes I already looked into jython the thing about that is that I have a program written in Java using JBuilder and so now i want to probably just include the python library and then use it since jython doesn't seem to use the NLTK. I need the NLTK for the overall project but its not working with jython.
 

Posts:1,160
Registered: 7/24/97
Re: Python classes in Java  
Jul 1, 2004 7:56 AM (reply 3 of 3)



 
Look for Java implementations of NLTK perhaps?
 
This topic has 3 replies on 1 page.