What I want to do: I want to create a mobile application with Syntaxnet/Tensorflow.
What I did: I tried to use Docker but my laptop didn't have enough memory. So I installed Unbuntu 16.04 alongside Windows 7 and successfully installed Syntaxnet. Now I can parse phrases with demo.sh file on the terminal.
edit 1, trying to make this question as strait forward as I can: I want to use syntaxnet/tensorflow with Java (not python). How do I import syntaxnet in Java with the setup I have now?
edit 2, Found a solution here it is:
You need a wrapper/api to work with Java, but it doesn't exist yet.
I think the best way is to install Kivy and code the app in python. You can import Syntaxnet in python with these lines:
import subprocess
import os
os.chdir(path to syntaxnet)
subprocess.call([
"echo 'Bob brought the pizza to Alice.' | syntaxnet/demo.sh"
], shell = True)
Aucun commentaire:
Enregistrer un commentaire