我有一个用 Java 编码的主应用程序,但我想使用 Python,因为 NLTK 库。
我想知道是否可以对这两种语言进行一些整合。就像将参数从 Java 传递到 Python 以及将处理后的数据从 Python 检索到 Java。
请您参考如下方法:
尝试 Jython
来自他们的 FAQ网站:
What is Jython?
Jython is the successor to JPython. The Jython project was created in accordance with the CNRI JPython 1.1.x license, in order to ensure the continued existence and development of this important piece of Python software. The intent is to manage this project with the same open policies that are serving CPython so well.
What is JPython?
JPython is an implementation of the Python programming language which is designed to run on the Java(tm) Platform.
