Open sih4sing5hong5 opened 7 years ago
https://github.com/tensorflow/models/tree/master/research/syntaxnet
dependency parser: https://codepen.io/explosion/pen/030d1e4dfa6256cad8fdd59e6aefecbe
The English dependency labels use the CLEAR Style by ClearNLP.
http://demo.allennlp.org/constituency-parsing/MjE5ODY0
參考 PTB的資訊 You can download the PTB data from the LDC website. THE PENN TREEBANK: AN OVERVIEW
PR: https://github.com/allenai/allennlp/pull/839/files
{"sentence": "If I bring 10 dollars tomorrow, can you buy me lunch?"}
"trees": "(SQ (SBAR (IN If) (S (NP (PRP I)) (VP (VBP bring) (NP (CD 10) (NNS dollars)) (NP (NN tomorrow))))) (, ,) (MD can) (NP (PRP you)) (VP (VB buy) (NP (PRP me)) (NP (NN lunch))) (. ?))"}
shallow parsing(chunking) 效果 nltk 71% openlp 83%
parsing的原理,訓練方法
http://stackoverflow.com/a/10401433/3640653