I am working on java web application and I'm trying to use a simple AI algorithm - NLP to parse texts. I want to run a python script from my app NLP.py which uses a data from another file (3 Gb size) that resides on my local pc, I downloaded the python plugin and I run the script like this:
String pythonScriptPath = "MY-PATH\\NLP\\NLP.py";
String[] cmd = new String[3];
cmd[0] = "python"; // check version of installed python: python -V
cmd[1] = pythonScriptPath;
cmd[2]="playing sport";
// create runtime to execute external command
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(cmd);
Files hierarchy:
Now I want to run all these things on Azure, I didn't find any relevant tutorial, I deployed the app as a regular web app but I still don't know:
- Where to upload the file that the script uses ?
- What path to write instead of MY-PATH ?
- How will the python script run on Azure, what resource should I use and how?
- Will it work like this (as web app that uses a python plugin) or should I do something entirely different?