edu.stanford.nlp.parser.lexparser
Class TueBaDZParserParams

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
      extended by edu.stanford.nlp.parser.lexparser.TueBaDZParserParams
All Implemented Interfaces:
TreebankLangParserParams, Serializable

public class TueBaDZParserParams
extends AbstractTreebankParserParams

TreebankLangParserParams for the German Tuebingen corpus.

Author:
Roger Levy (rog@stanford.edu)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
AbstractTreebankParserParams.SubcategoryStripper
 
Field Summary
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
inputEncoding, outputEncoding, tlp
 
Constructor Summary
TueBaDZParserParams()
           
 
Method Summary
 TreeTransformer collinizer()
          the tree transformer used to produce trees for evaluation.
 TreeTransformer collinizerEvalb()
          the tree transformer used to produce trees for evaluation.
 List defaultTestSentence()
          Returns the first sentence of TueBaDZ.
 DiskTreebank diskTreebank()
          returns a DiskTreebank appropriate to the treebank source
 void display()
          display language-specific settings
 HeadFinder headFinder()
          returns a TueBaDZHeadFinder.
 MemoryTreebank memoryTreebank()
          returns a MemoryTreebank appropriate to the treebank source
 int setOptionFlag(String[] args, int i)
          No options yet.
 String[] sisterSplitters()
          Returns the splitting strings used for selective splits.
 Tree transformTree(Tree t, Tree root)
          A no-op right now.
 TreeReaderFactory treeReaderFactory()
          Returns a factory for reading in trees from the source you want.
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
dependencyGrammarExtractor, dependencyObjectify, getInputEncoding, getOutputEncoding, lex, lex, MLEDependencyGrammarSmoothingParams, parsevalObjectify, parsevalObjectify, pw, pw, setInputEncoding, setOutputEncoding, subcategoryStripper, testMemoryTreebank, treebankLanguagePack, treeTokenizerFactory, typedDependencyClasser, typedDependencyObjectify, untypedDependencyObjectify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TueBaDZParserParams

public TueBaDZParserParams()
Method Detail

defaultTestSentence

public List defaultTestSentence()
Returns the first sentence of TueBaDZ.


sisterSplitters

public String[] sisterSplitters()
Description copied from class: AbstractTreebankParserParams
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.

collinizer

public TreeTransformer collinizer()
Description copied from class: AbstractTreebankParserParams
the tree transformer used to produce trees for evaluation. Will be applied both to the parse output tree and to the gold tree. Should strip punctuation and maybe do some other things.

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

collinizerEvalb

public TreeTransformer collinizerEvalb()
Description copied from class: AbstractTreebankParserParams
the tree transformer used to produce trees for evaluation. Will be applied both to the parse output tree and to the gold tree. Should strip punctuation and maybe do some other things. The evalb version should strip some more stuff off. (finish this doc!)

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

memoryTreebank

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

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

diskTreebank

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


treeReaderFactory

public TreeReaderFactory treeReaderFactory()
Description copied from interface: TreebankLangParserParams
Returns a factory for reading in trees from the source you want. It's the responsibility of trf to deal properly with character-set encoding of the input. It also is the responsibility of trf to properly normalize trees.

Returns:
A factory that vends an appropriate TreeReader

setOptionFlag

public int setOptionFlag(String[] args,
                         int i)
No options yet.

Specified by:
setOptionFlag in interface TreebankLangParserParams
Specified by:
setOptionFlag in class AbstractTreebankParserParams
Parameters:
args - Array of command line arguments
i - Index in command line arguments to try to process as an option
Returns:
The index of the item after arguments processed as part of this command line option.

display

public void display()
Description copied from class: AbstractTreebankParserParams
display language-specific settings

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

headFinder

public HeadFinder headFinder()
returns a TueBaDZHeadFinder.

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

transformTree

public Tree transformTree(Tree t,
                          Tree root)
A no-op right now.

Specified by:
transformTree in interface TreebankLangParserParams
Specified by:
transformTree in class AbstractTreebankParserParams
Parameters:
t - The input tree (with non-language specific annotation already done, so you need to strip back to basic categories)
root - The root of the current tree (can be null for words)
Returns:
The fully annotated tree node (with daughters still as you want them in the final result)


Stanford NLP Group