How to extract
information from text with
Semgrex
Viktor Turskyi
DataScience Lab
(exAI&BigDataLab)
Semgrex Examples
{} >nsubj {} >dobj {}
{tag:NOUN} [ <nsubj {} | <csubj {} ]
{}=a >> {word:foo} : {}=a >> {word:/bar.*/}
{}=rc <rcmod {} : {tag:PRON}=pron <<nsubj {}=rc
Demo
https://github.com/koorchik/node-semgrex-demo
Links
https://www.npmjs.com/package/semgrex
https://github.com/koorchik/node-semgrex-demo
https://cloud.google.com/natural-language/
https://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/semgraph/semgrex/S
emgrexPattern.html
http://universaldependencies.org/
https://github.com/yandex/dep_tregex
Viktor Turskyi
CTO at WebbyLab
Twitter: @koorchik

How to extract information from text with Semgrex