Link Grammar Example

From GM-RKB
(Redirected from Link Grammar Examples)
Jump to navigation Jump to search

A Link Grammar Example is an example of parsed strings using a Link Grammars.



References

Two similar sentences

         +-------Pa--------+        +-----Jp-----+
   +--Ss-+--EBm-+          +--MVp---+    +--Dmc--+
  |    |     |         |       |   |       |

Salieri was(v) clearly mediocre(a) among the composers(n)

                        +-----Jp-----+
  +--Ss-+---Paf-+--MVp--+    +--Dmc--+
 |    |      |      |   |       |

Mozart was(v) great(a) among the composers(n).

Simple Conjunction

   +------------------------------Xp-----------------------------+
  |                                            +----Jp----+     |
   +---Wd---+--------Spx-------+---Opt--+---Mp--+  +--Dmc--+     |
  |       |                 |       |      |  |      |     |

LEFT-WALL Mozart and Salieri were.v composers.n of the 1700s [!].n .

   +------------------------------Xp-----------------------------+
  |                                            +----Jp----+     |
   +---------Wd--------+--Spx--+---Opt--+---Mp--+  +--Dmc--+     |
  |                  |      |       |      |  |      |     |

LEFT-WALL Mozart and Salieri were.v composers.n of the 1700s [!].n .

"Such As"

Found 5 linkages (3 with no P.P. violations)

 Linkage 1, cost vector = (UNUSED=0 DIS=0 AND=0 LEN=11)
   +----------------------------Xp---------------------------+
  |                               +-----Mp----+             |
   +--Wd--+---Ss--+---MVp--+---Jp--+       +IDW+Js+          |
  |     |      |       |      |      |  |  |          |

LEFT-WALL MEQ interacts.v with proteins.n such as P53 and RB1 .

   +----------------------------Xp---------------------------+
  |                               +-----Mp----+             |
   +--Wd--+---Ss--+---MVp--+---Jp--+       +IDW+----Js----+  |
  |     |      |       |      |      |  |         |  |

LEFT-WALL MEQ interacts.v with proteins.n such as P53 and RB1 .

Constituent tree:

(S (NP MEQ)

  (VP interacts
      (PP with
          (NP (NP proteins)
              (PP such as
                  (NP (NP P53)
                      and
                      (NP RB1))))))
  .)

Handling of inverted subject-verb order, as in questions.

           +----I*d----+
   +---Qd--+-SIp+      |
  |      |   |      |

LEFT-WALL do.v they travel.v

   +-----------Xp-----------+
   +---Wd--+-Sp-+--I*d-+    |
  |      |   |     |    |

LEFT-WALL they do.v travel.v .

The inverted subject-verb order is expressed by a special type of link: SI, for subject inversion.

Problem area
Complex Conjunctions

No complete linkages found. ++++Time 0.03 seconds (416.26 total) Found 5 linkages (5 with no P.P. violations) at null count 1

 Linkage 1, cost vector = (UNUSED=1 DIS=1 AND=0 LEN=14)
   +-----------------------Xp-----------------------+
  |            +-----Osn----+                      |
   +--Wd--+-Sp*i+-Os-+  +-Ds-+                      |
  |     |    |   |  |   |                      |

LEFT-WALL I.p gave.v Bob a doll.n and [Mary] a gun.n .

   +-----------------------Xp-----------------------+
  |            +--------------Osn--------------+   |
   +--Wd--+-Sp*i+-Os-+                      +-Ds+   |
  |     |    |   |                     |  |   |

LEFT-WALL I.p gave.v Bob a doll.n and [Mary] a gun.n .

Constituent tree:

(S (NP I)

  (VP gave
      (NP Bob)
      (NP (NP a doll)
          and Mary
          (NP a gun)))
  .)