How do I use WordNet in Python?

I have a bunch of Hadoop code implemented in Java that I would like to call from Python code. Instead of either re-implementing my Hadoop code in Python or my Python code in Java, what is the best method to use both types of code together?

  • It appears that Jype is an option. Is Jype the best solution for calling Hadoop code in Java from Python? Are there other options? Is anyone aware of any pitfalls of using Jype?

  • Answer:

    I think the question is not particularly related with Hadoop, but probably calling java code from python. There are a couple of options like Jython, JPype. This may be helpful : http://wiki.cacr.caltech.edu/danse/index.php/Communication%5Fbetween%5FJava%5Fand%5FPython Haven't used JPype.

Jahangir Mohammed at Quora Visit the source

Was this solution helpful to you?

Other answers

I'd recommend jython.  I actually don't know java but I wanted to automate some tasks in Gephi, a graph software built with java.  I got things started in under a half hour using jython, and the syntax was basically python.

Ross Kravitz

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.