dsindex / syntaxnet

reference code for syntaxnet
196 stars 57 forks source link

Launch server with different model #23

Closed peschanko closed 6 years ago

peschanko commented 7 years ago

Thank you for the great tutorial!

I am able to launch

./bazel-bin/tensorflow_serving/example/parsey_api --port=9000 ../api/parsey_model

and it works fine with English. What changes do I need to make to start the server with a Russian model? I have tried to change files in ../api/parsey_model with no result.

dsindex commented 7 years ago

@peschanko

for a Russian model, you need to export the model as described here ( https://github.com/dsindex/syntaxnet/blob/master/README_api.md )

and you also need to train a Russian model before exporting it.

prepare Russian UD corpus -> training -> export model -> launch

https://github.com/dsindex/syntaxnet/issues/19 : this is a related issue that may help you.

jhowliu commented 7 years ago

Hi @dsindex Is possible to use tensorflow loader to load the saved model? (not using the serving)

dsindex commented 7 years ago

@jhowliu

i can't find a way to load and test the syntaxnet model directly from python.

but if you are interested in the dragnn model, then try this one : https://github.com/dsindex/syntaxnet#dragnn

the dragnn is relatively easy to train and serve.

jhowliu commented 7 years ago

@dsindex

Ok, i will try dragnn model. And thanks for your awesome instructions.