edu.stanford.nlp.parser.lexparser
Class NegraPennTreebankParserParams

java.lang.Object
  extended byedu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
      extended byedu.stanford.nlp.parser.lexparser.NegraPennTreebankParserParams
All Implemented Interfaces:
Serializable, TreebankLangParserParams

public class NegraPennTreebankParserParams
extends AbstractTreebankParserParams
implements TreebankLangParserParams

Parameter file for parsing the Penn Treebank format of the Negra Treebank (German). STILL UNDER CONSTRUCTION!

Author:
Roger Levy
See Also:
Serialized Form

Field Summary
static boolean markRC
           
static boolean markZuVP
           
static boolean treeNormalizerInsertNPinPP
           
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
inputEncoding, outputEncoding, tlp
 
Constructor Summary
NegraPennTreebankParserParams()
           
 
Method Summary
 TreeTransformer collinizer()
          returns a NegraPennCollinizer
 TreeTransformer collinizerEvalb()
          returns a NegraPennCollinizer
 void display()
          display language-specific settings
 HeadFinder headFinder()
          returns a NegraHeadFinder
 Lexicon lex()
          returns an ordinary Lexicon (could be tuned for German!)
static void main(String[] args)
           
 MemoryTreebank memoryTreebank()
          returns a MemoryTreebank appropriate to the treebank source
 int setOptionFlag(String[] args, int i)
          Set language-specific options according to flags.
 String[] sisterSplitters()
          Returns the splitting strings used for selective splits.
 String[] splitters()
          Returns the splitting strings used for selective splits.
 edu.stanford.nlp.parser.lexparser.TreeHeadPair transformTree(Tree t, Tree root, edu.stanford.nlp.parser.lexparser.TreeHeadPair thp)
          transformTree does all language-specific tree transformations.
 TreebankLanguagePack treebankLanguagePack()
          Returns a ChineseTreebankLanguagePack
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
pw, pw, setInputEncoding, setOutputEncoding, testMemoryTreebank
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.nlp.parser.lexparser.TreebankLangParserParams
pw, pw, setInputEncoding, setOutputEncoding, testMemoryTreebank
 

Field Detail

markRC

public static boolean markRC

markZuVP

public static boolean markZuVP

treeNormalizerInsertNPinPP

public static boolean treeNormalizerInsertNPinPP
Constructor Detail

NegraPennTreebankParserParams

public NegraPennTreebankParserParams()
Method Detail

headFinder

public HeadFinder headFinder()
returns a NegraHeadFinder

Specified by:
headFinder in interface TreebankLangParserParams
Specified by:
headFinder in class AbstractTreebankParserParams

lex

public Lexicon lex()
returns an ordinary Lexicon (could be tuned for German!)

Specified by:
lex in interface TreebankLangParserParams
Specified by:
lex in class AbstractTreebankParserParams

memoryTreebank

public MemoryTreebank memoryTreebank()
Description copied from interface: TreebankLangParserParams
returns a MemoryTreebank appropriate to the treebank source

Specified by:
memoryTreebank in interface TreebankLangParserParams
Specified by:
memoryTreebank in class AbstractTreebankParserParams

collinizer

public TreeTransformer collinizer()
returns a NegraPennCollinizer

Specified by:
collinizer in interface TreebankLangParserParams
Specified by:
collinizer in class AbstractTreebankParserParams

collinizerEvalb

public TreeTransformer collinizerEvalb()
returns a NegraPennCollinizer

Specified by:
collinizerEvalb in interface TreebankLangParserParams
Specified by:
collinizerEvalb in class AbstractTreebankParserParams

treebankLanguagePack

public TreebankLanguagePack treebankLanguagePack()
Returns a ChineseTreebankLanguagePack

Specified by:
treebankLanguagePack in interface TreebankLangParserParams
Overrides:
treebankLanguagePack in class AbstractTreebankParserParams

sisterSplitters

public String[] sisterSplitters()
Description copied from interface: TreebankLangParserParams
Returns the splitting strings used for selective splits.

Specified by:
sisterSplitters in interface TreebankLangParserParams
Specified by:
sisterSplitters in class AbstractTreebankParserParams
Returns:
An array containing ancestor-annotated Strings: categories should be split according to these ancestor annotations.

splitters

public String[] splitters()
Description copied from interface: TreebankLangParserParams
Returns the splitting strings used for selective splits.

Specified by:
splitters in interface TreebankLangParserParams
Specified by:
splitters in class AbstractTreebankParserParams
Returns:
An array containing ancestor-annotated Strings: categories should be split according to these ancestor annotations.

setOptionFlag

public int setOptionFlag(String[] args,
                         int i)
Description copied from interface: TreebankLangParserParams
Set language-specific options according to flags. This routine should process the option starting in args[i] (which might potentially be several arguments long if it takes arguments). It should return the index after the last index it consumed in processing. In particular, if it cannot process the current option, the return value should be i.

Specified by:
setOptionFlag in interface TreebankLangParserParams
Specified by:
setOptionFlag in class AbstractTreebankParserParams

display

public void display()
Description copied from interface: TreebankLangParserParams
display language-specific settings

Specified by:
display in interface TreebankLangParserParams
Specified by:
display in class AbstractTreebankParserParams

transformTree

public edu.stanford.nlp.parser.lexparser.TreeHeadPair transformTree(Tree t,
                                                                    Tree root,
                                                                    edu.stanford.nlp.parser.lexparser.TreeHeadPair thp)
transformTree does all language-specific tree transformations. Any parameterizations should be inside the specific TreebankLangParserarams class.

Specified by:
transformTree in interface TreebankLangParserParams
Specified by:
transformTree in class AbstractTreebankParserParams

main

public static void main(String[] args)


Stanford NLP Group