參 https://my.oschina.net/dingdayu/blog/1083438
- docker run -it tensorflow/syntaxnet bash
- cd /opt/tensorflow/syntaxnet
- wget http://download.tensorflow.org/models/parsey_universal/Chinese.zip
- unzip Chinese.zip
- MODEL_DIRECTORY=/opt/tensorflow/syntaxnet/Chinese
- echo '第一年住院医师,做阑尾切除手术时,找不到阑尾在何处,你若是他的主治医师,请你告诉他下列何种方法最容易找到阑尾?' | syntaxnet/models/parsey_universal/tokenize_zh.sh $MODEL_DIRECTORY | syntaxnet/models/parsey_universal/parse.sh $MODEL_DIRECTORY
看來要追上 coreNLP 還需要一點時間…
沒有留言:
張貼留言