Week5-7Dependency parsing

来源:互联网 发布:s7 200 编程电缆 原装 编辑:程序博客网 时间:2024/06/04 18:33

Dependency structure

这里写图片描述

  • blue
    • modifier, dependent, child, subordinate
  • house
    • head, governor, parent, regent

这里写图片描述

  • Phrase structure

这里写图片描述

  • Dependency structure
    这里写图片描述

Dependency grammar

  • Characteristics
    • lexical/syntactic dependencies between words
    • top-level predicate of the sentence is the root
    • simpler to parse than CFG
    • particularly useful for free word order languages(Latin)

How to identify the head

  • H=head, M=modifier
    • H determines the syntactic category of the construct
    • H determines the semantic category of the construct
    • H is required, M can be skipped( house is a must, but blue can be skipped)
    • Fixed linear position of M with respect to H

Head rules from Collins

这里写图片描述

Techniques

  • Dynamic Programming
    • CKY - similar to lexicalized PCFG, O(n3)
      这里写图片描述
  • Constraint based methods
    • Maruyama 1990, Karlsson 1990
    • NP complete problem; heuristics need
  • Constraint Graph
  • Deterministic Parsing
    • Covington 2001
    • Maltparser by Nivre
      • Similar to shift-reduce parser
  • Graph based methods
    • Maximum spanning trees(MCDonald et al.)

Non-projectivity

这里写图片描述

If you allow your parse tree to have crossings as shown at the bottom of the sentence, the parse tree is non-projective parse tree.

Dependency parsing

  • Background
    • McDonald et al. 2005
  • Projectivity
    • English dependency trees are mostly projective (can be drawn without crossing dependencies)
  • Idea
    • Dependency parsing is equivalent to search for a maximum spanning tree in a directed graph.

MaltParser

  • It includes following components
    • a stack
    • a buffer
    • set of dependencies (arcs)
  • There is also arc-eager parser having different actions

Example

这里写图片描述

  • There is no search, the next action is chosen using a classifier.
  • The final list of arcs is returned as the dependency tree.

Evaluation metric

  • Labelled dependency accuracy
    • # correct deps / # deps

Complexity

  • Projective (CKY) O(n5)
  • Projective (Eisner) O(n3)
  • Non-projective (MST- Chu-Liu-Edmonds) O(n2)
  • Projective (Malt) O(n)

Application

Use in Information Extraction

这里写图片描述

Dependency kernels

Decides how similar 2 sentences are based on how similar their dependency structures are.

这里写图片描述

0 0
原创粉丝点击