2012-10-23 50 views
12

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

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))))) 
    (. ?))) 

我看了斯坦福分析器网站,并阅读了其中列出的几个期刊,但没有解释前面提到的标签。我找到了一本描述所有依赖关系的手册,但并没有解释我在找什么。谢谢!

回答

21

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。你一直在帮助很大。比你知道的更多。说实话,我一直在寻找过去的2-3周,但我认为这不应该很难找到,我也不想打扰任何人。我想我正在看错误的地方。再一次感谢你! – Cryssie

+0

子级标签。在此处了解更多信息:http://bulba.sdsu.edu/jeanette/thesis/PennTags.html –

+7

http://bulba.sdsu.edu/jeanette/thesis/PennTags.html似乎已脱机。我已将信息复制到https://gist.github.com/nlothian/9240750 –

-1

要看到整个列表只打印解析器

LexicalizedParser lp = LexicalizedParser.loadModel(); 
    System.out.println(lp.tagIndex); // print the tag index 
相关问题