Week5-7Dependency parsing

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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值