Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate .pb file for android #33

Open
LeDaVinci opened this issue May 2, 2018 · 2 comments
Open

How to generate .pb file for android #33

LeDaVinci opened this issue May 2, 2018 · 2 comments

Comments

@LeDaVinci
Copy link

LeDaVinci commented May 2, 2018

my android project need analysis user's intent by strings, so i want to use syntaxnet and tensorflow-android sample ,and tensorflow-android need .pb file,but i don't know how to generate it by syntaxnet , if someone done the same thing,tell me the method ,thanks

@dsindex
Copy link
Owner

dsindex commented May 2, 2018

@LeDaVinci

i have no idea for android.
but i am curious why you try to build your
system by using syntaxnet(such a heavy system in android).

if you want to analyze strings to obtain syntactic structures such as pos, dependencis, then i’d like to recommend
you to use Spacy library(easy to use,
and comparable performance, much faster)

there is a c++ wrapper for it.
https://github.com/d99kris/spacy-cpp
you may be able to build an JNA wrapper
for java. otherwise you can build an api
with python Spacy library.

sorry for limited answer;

@LeDaVinci
Copy link
Author

thanks a lot , I will try to use the library.
about the question why i try to build my android app by using syntaxnet ,
actually ,my app is based on the user's voice data and guess the intent,
the voice data come from Google speech recognizer,
and i need divide the sentence into words , find the verbs and nouns.
for example , the user say ' i want to watch HBO' , my app can change the channel.
changing channel just a simple action , my app is used in a set-top box.
i saw syntaxnet on the internet the other day , after a brief understanding , i think syntaxnet + tensorflow-android can meet the requirement , but i don't konw how to generate the .pb file which is needed by tensorflow-android,the problem stoped me several days.
thanks for your answer , if you have some good idea about my app , please reply
my email address : [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants