I am developing a chatbot (for Kik messenger) with Python and recently moved my app to Heroku, pretty much as described in this question. Additionally, I have included NLTK (a Python module) and some of its resources as described in the Heroku documentation. Up to this point, things work nicely and the chatbot app responds in the Kik messenger.
As a next step, I want to include tools from Stanford NLP with their NLTK API. The Stanford NLP tools are provided as a Java repository, together with several model files. Locally, I have done this after setting up the API according to this answer. I don't know how to do this for Heroku, though. Heroku has a documentation on how to deploy executable jar files, but I don't see how to apply it to my problem.
The actual function I want to use is the Stanford parser that I invoke locally with:
from nltk.parse.stanford import StanfordParser
parser=StanfordParser(model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz")
This is my first question on SO, so please let me know if and how I can edit this question so that it becomes easier to answer.
Edit: On a more general level, I have a Python application that I run on the Heroku cloud service (with ephemeral file system) and want to include a Java repository.