Stanford Parser标签

问题描述 投票:16回答:2

我刚刚开始使用Stanford Parser,但我不太了解这些标签。这可能是一个愚蠢的问题,但任何人都可以告诉我SBARQ和SQ标签代表什么,我在哪里可以找到它们的完整列表?我知道Penn Treebank的样子,但这些略有不同。

Sentence: What is the highest waterfall in the United States ?

(ROOT
  (SBARQ
    (WHNP (WP What))
    (SQ (VBZ is)
      (NP
        (NP (DT the) (JJS highest) (NN waterfall))
        (PP (IN in)
          (NP (DT the) (NNP United) (NNPS States)))))
    (. ?)))

我查看了Stanford Parser网站并阅读了其中列出的一些期刊,但没有解释前面提到的标签。我找到了一本描述所有依赖项的手册,但它没有解释我在寻找什么。谢谢!

stanford-nlp
2个回答
29
投票

This reference看起来有一个广泛的清单 - 不确定它是否完整。

具体来说,它列出了您要问的问题:

SBARQ - Direct question introduced by a wh-word or a wh-phrase. Indirect 
        questions and relative clauses should be bracketed as SBAR, not SBARQ.
SQ    - Inverted yes/no question, or main clause of a wh-question, 
        following the wh-phrase in SBARQ.

-1
投票

要查看整个列表,只需打印解析器的tagIndex

    LexicalizedParser lp =  LexicalizedParser.loadModel();
    System.out.println(lp.tagIndex); // print the tag index
© www.soinside.com 2019 - 2024. All rights reserved.