- This document is NOT for end-users.
- Only developers those who want to rebuild the entire project should read this document.
- Modify
KOMORANEntryPoint.java
file in thejava/src
directory.- This file will bridge between JVM and Python.
- If you have any method want to call in Python, define it here.
- Create a Jar file using
gradle
in thejava/
directory.- Build with
java/gradlew jar
command, and then Jar file will be created asKOMORANEntryPoint-[VERSION].jar
in thejava/build/libs/
directory. - Above
[VERSION]
postfix follows the version injava/build.gradle
file.
- Build with
- Copy the generated Jar file for use in Python.
- You should copy the file in
python/PyKomoran/libs
.
- You should copy the file in
- Now everything you can do in Java-side is over.
- Modify the
*.py
file in thepython/PyKomoran
directory.- The
jvm
module creates ajvm_gateway
forPy4J
and returns a JVM Object. - The
type
module contains the datatypes used by PyKomoran. - The
core
module has aKomoran
class wrapped inKOMORAN(Java)
.
- The
- Build the project using
setup.py
that exists in the project root.- Create an installation file using
python setup.py sdist
and/orpython setup.py bdist_wheel
.
- Create an installation file using
- Everything is over. Now you can release the installation binary.