Link Grammar Parser

From Wikipedia, the free encyclopedia

Link Grammar Parser, or LinkParser is a syntactic parser by Davy Temperley, Daniel Sleator and John Lafferty of Carnegie Mellon University. It is being ported to Ruby by Martin Chase.

[edit] Examples

# Find the verb in the sentence
"he is a big dog".en.sentence.verb.to_s      
# => "is"
# Combined infinitive + LinkParser: Find the infinitive form of the 
# verb of the given sentence.
"he is a big dog".en.sentence.verb.infinitive
# => "be"
# Find the direct object of the sentence
"he is a big dog".en.sentence.object.to_s
# => "dog"

More examples of its usage can be found at the bottom of the Ruby Linguistics English example page.

[edit] External Links