Reputation: 1
I am trying to perform Semgrex in https://corenlp.run/ on the below sentence to extract the transition event. Since the dependency relation "obl:from" has a colon in it, I get an error. But instead, if I used nsubj, I get the desired result. Can someone tell me how to work around this?
My text: The automobile shall change states from OFF to ON when the driver is in control.
{} <<nsubj {}
{} <<obl:from {}
working scenario screenshot Issue scenario screenshot
Upvotes: 0
Views: 168
Reputation: 1
Found the answer! Just wrap the expression within / /
and it works!
For eg.
{} << /obl:from/ {}
Upvotes: 0