ljm625 / syntaxnet-rest-api

A simple rest api for Google SyntaxNet, powered by docker
GNU General Public License v3.0
72 stars 29 forks source link

I wonder if there is a part that needs to be set separately when trying to insert another language pack. #6

Closed tylee33 closed 7 years ago

tylee33 commented 7 years ago

I am testing syntexnet applying Korean using your source. In the dockerfile, I wonder that there is no part to learn with the language set. Looking at the source, it seems that the shell script located in parser.py works by referring to the path of the config file. Custom_parse.sh seems to be similar to demo.sh which is automatically generated by syntexnet.

I wonder if there is a part that needs to be set separately when trying to insert another language pack.

ljm625 commented 7 years ago

Hi, Basically if you want to use a language pack, please download the pretrained model https://github.com/tensorflow/models/blob/master/syntaxnet/universal.md and just follow the instructions in the readme which basically mount the folder which contain this module to the docker container, and the script will try to use the model if you do a rest.

ljm625 commented 7 years ago

If you want to train your own model, please follow the guide on the syntaxnet repo and after that you can probably use the model in the api wrapper