Extracts relations from text articles.
Install SBT 0.13.0+.
$ sbt console
scala>valsentence="The man walks the dog."
sentence:String=The man walks the dog.
scala>valparsed=Parse(sentence)
parsed:Tree[String] =
(ROOT
(S
(@S
(NP (DTThe) (NN man))
(VP (VBZ walks)
(NP (DT the) (NN dog))))
(. .)))
scala>valcompiled=Compile(parsed)
compiled:Tree[String] \/List[Relation] =\/-([
<relation:walk(<literal:man>, <literal:dog>)>
])