本文部分翻译自文章Dependency parsing外加个人批注以及关于如何在Python中具体实现的小笔记.
Kübler, Sandra, Ryan McDonald, and Joakim Nivre. “Dependency parsing.” Synthesis Lectures on Human Language Technologies 1.1 (2009): 1-127.

评估dependency parser以及其他类型的parser标准化的做法是把他们应用到一个treebank的测试集上,然后比较parser的输出和treebank给出的标注(gold standard annotation found in the treebank). (我读下来觉得这句话是废话 ?)最为常用的评估方法有以下几种:

  • Exact match 精准匹配: 计算的是完全正确parse的句子所占总句子的比例. (个人觉得这个算下来都不会高,整个句子全都分对对算法来说略显困难;并且大多数情况下我们还是比较关心单个component的parse性能,所以这个我觉得基本不太可能会用到.)
  • Attachment score: 这个主要用在dependency parser上,constituent parser不能直接使用.它计算的是拥有正确的head的单词占总单词的比例.它以来的是dependency trees的single-head property. Attachment score又有以下两种
    • Labeled Attachment score(LAS)
    • Unlabeled Attachment score(UAS)

Penn Treebank Constituent Tags

Clause Level

S - simple declarative clause, i.e. one that is not introduced by a (possible empty) subordinating conjunction or a wh-word and that does not exhibit subject-verb inversion.
SBAR - Clause introduced by a (possibly empty) subordinating conjunction.
SBARQ - Direct question introduced by a wh-word or a wh-phrase. Indirect questions and relative clauses should be bracketed as SBAR, not SBARQ.
SINV - Inverted declarative sentence, i.e. one in which the subject follows the tensed verb or modal.
SQ - Inverted yes/no question, or main clause of a wh-question, following the wh-phrase in SBARQ.

Phrase Level

ADJP - Adjective Phrase.
ADVP - Adverb Phrase.
CONJP - Conjunction Phrase.
FRAG - Fragment.
INTJ - Interjection. Corresponds approximately to the part-of-speech tag UH.
LST - List marker. Includes surrounding punctuation.
NAC - Not a Constituent; used to show the scope of certain prenominal modifiers within an NP.
NP - Noun Phrase.
NX - Used within certain complex NPs to mark the head of the NP. Corresponds very roughly to N-bar level but used quite differently.
PP - Prepositional Phrase.
PRN - Parenthetical.
PRT - Particle. Category for words that should be tagged RP.
QP - Quantifier Phrase (i.e. complex measure/amount phrase); used within NP.
RRC - Reduced Relative Clause.
UCP - Unlike Coordinated Phrase.
VP - Vereb Phrase.
WHADJP - Wh-adjective Phrase. Adjectival phrase containing a wh-adverb, as in how hot.
WHAVP - Wh-adverb Phrase. Introduces a clause with an NP gap. May be null (containing the 0 complementizer) or lexical, containing a wh-adverb such as how or why.
WHNP - Wh-noun Phrase. Introduces a clause with an NP gap. May be null (containing the 0 complementizer) or lexical, containing some wh-word, e.g. who, which book, whose daughter, none of which, or how many leopards.
WHPP - Wh-prepositional Phrase. Prepositional phrase containing a wh-noun phrase (such as of which or by whose authority) that either introduces a PP gap or is contained by a WHNP.
X - Unknown, uncertain, or unbracketable. X is often used for bracketing typos and in bracketing the…the-constructions.

Word level

CC - Coordinating conjunction
CD - Cardinal number
DT - Determiner
EX - Existential there
FW - Foreign word
IN - Preposition or subordinating conjunction
JJ - Adjective
JJR - Adjective, comparative
JJS - Adjective, superlative
LS - List item marker
MD - Modal
NN - Noun, singular or mass
NNS - Noun, plural
NNP - Proper noun, singular
NNPS - Proper noun, plural
PDT - Predeterminer
POS - Possessive ending
PRP - Personal pronoun
PRP$ - Possessive pronoun (prolog version PRP-S)
RB - Adverb
RBR - Adverb, comparative
RBS - Adverb, superlative
RP - Particle
SYM - Symbol
TO - to
UH - Interjection
VB - Verb, base form
VBD - Verb, past tense
VBG - Verb, gerund or present participle
VBN - Verb, past participle
VBP - Verb, non-3rd person singular present
VBZ - Verb, 3rd person singular present
WDT - Wh-determiner
WP - Wh-pronoun
WP$ - Possessive wh-pronoun (prolog version WP-S)
WRB - Wh-adverb

Dependency Parsing评估方法(evaluation metrics)小记相关推荐

  1. 【CS224n】(assignment3)Dependency Parsing

    学习总结 (1)关于5个assignment的难度,可以参考斯坦福大佬的CS224作业评论,大体是说今年的transformer成为课程重点,由总助教博三大佬John讲,他原本还想让同学们手写enco ...

  2. 【CS224n】(lecture4)Dependency Parsing 依存句法分析

    学习总结 句法分析(Syntactic Parsing),两种典型的句法结构表示: (1)短语结构句法:依托上下文无关文法,S代表起始符号,如NP和VP分别表示名词短语和动词短语. (2)依存结构句法 ...

  3. 句法分析:依存分析(Dependency Parsing)

    目录 1. 句法分析任务分类 2. 依存分析方法 2.1 什么是依存分析 2.2 传统的基于转移的依存分析(Transition-based Parsing) 2.3 神经依存分析(Neural De ...

  4. Chapter7-9_Deep Learning for Dependency Parsing

    文章目录 1 什么是Dependency Parsing 2 模型结构 本文为李弘毅老师[Deep Learning for Dependency Parsing]的课程笔记,课程视频youtube地 ...

  5. CS224N Assignment3 #3: Dependency Parsing(2022 winter)

    课程网站:https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1214/ 1. Machine Learning & Neural ...

  6. 【CS224n-5】Linguistic Structure: Dependency Parsing

    一.句法结构(syntactic structure) 主要有两种方式: 1)Constituency Parsing       2)Dependency Parsing 二.Constituenc ...

  7. 2019年CS224N课程笔记-Lecture 5: Linguistic Structure: Dependency Parsing

    资源链接:https://www.bilibili.com/video/BV1r4411,部分内容参考来自于码农场 » CS224n笔记6 句法分析和https://zhuanlan.zhihu.co ...

  8. CS224n 2019 Winter 笔记(三):句子依存分析(Dependency Parsing)

    CS224n 2019 Winter 笔记(三):句子依存分析(Dependency Parsing) 一.概述 二.语言结构的两种Views (一)成分分析(constituent parsing) ...

  9. Headed-Span-Based Projective Dependency Parsing

    学习ACL2022 论文地址:https://arxiv.org/abs/2108.04750 code地址: ​​​​​​https://github.com/sustcsonglin/span-b ...

最新文章

  1. 3.3.2 差错控制(检错编码)
  2. php 断点续传 暂停,PHP 断点续传实例详解
  3. python如何制作一个任意列表_在Python中扁平化任意嵌套列表的最快方法是什么?...
  4. BZOJ 1822 Frozen Nova 霜冻新星
  5. 手动安装pytorch gpu版本 (cpu版本同理)
  6. linux中screen 命令简单使用
  7. cookie里面用到的关键字_Java的理解角度-关键字篇
  8. [GO]冒泡排序的原理和代码实现
  9. Vue File Manager – PHP即时存储、共享和获取文件基于VUE v2.2.0.2
  10. 简述计算机的含义是什么,输入法全拼和双拼是什么意思?有什么区别?
  11. 短线上岸西安电子科技大学考研811信号与电路分析经验分享
  12. ls -l 字段意思
  13. 渴望经济独立,读研可以实现吗?
  14. [预训练语言模型专题] 银色独角兽GPT家族
  15. Python导出当前环境依赖包及项目依赖包
  16. php 找祖先,鲸鱼的祖先有4条腿
  17. 局域网计算机如何传输文件,同一个局域网内如何传输文件
  18. php视频降清晰度,如何提高视频清晰度 调节视频清晰度的方法推荐
  19. 汤姆猫java下载手机版_汤姆猫编程星球app下载-汤姆猫编程星球下载v1.0.8-西西软件下载...
  20. 剑指offer读书笔记

热门文章

  1. Espressif 玩转串口解析(FreeRTOS-Plus-CLI)
  2. Java基础学习(12)
  3. POJ-1083 Moving Tables(imos算法)
  4. { errcode: 45028, errmsg: 'has no masssend quota hint: [weFeva0926zbg9]' }
  5. python之del
  6. iOS学习之iOS沙盒(sandbox)机制和文件操作(一)
  7. 网络广告课堂笔记[转]
  8. java gcm_Android 用java现实AES-GCM 加解密文件
  9. 数字竞猜机及其运行测试
  10. 基于Android的天气预报APP