edu.stanford.nlp.parser.lexparser
Class ArabicTreebankParserParams

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

public class ArabicTreebankParserParams
extends AbstractTreebankParserParams

A TreebankLangParserParams implementing class for the Penn Arabic Treebank.

See Also:
Serialized Form

Nested Class Summary
static class ArabicTreebankParserParams.ArabicRomanizedTextEscaper
          This escaper just changes ( to -LRB- and ) to -RRB-, does nothing else.
 
Nested classes/interfaces inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
AbstractTreebankParserParams.DependencyTyper<T>, AbstractTreebankParserParams.SubcategoryStripper
 
Field Summary
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
inputEncoding, outputEncoding, tlp
 
Constructor Summary
ArabicTreebankParserParams()
           
 
Method Summary
 TreeTransformer collinizer()
          Stand-in collinizer does nothing to the tree.
 TreeTransformer collinizerEvalb()
          Stand-in collinizer does nothing to the tree.
 java.util.List defaultTestSentence()
          Return a default sentence for the language (for testing)
 DiskTreebank diskTreebank()
          returns a DiskTreebank appropriate to the treebank source
 void display()
          display language-specific settings
 HeadFinder headFinder()
          the HeadFinder to use for your treebank.
static void main(java.lang.String[] args)
          Loads Arabic Treebank files from the first argument and prints all the trees.
 MemoryTreebank memoryTreebank()
          returns a MemoryTreebank appropriate to the treebank source
 int setOptionFlag(java.lang.String[] args, int i)
          Some options for setOptionFlag:
 java.lang.String[] sisterSplitters()
          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 language-specific tree transformations such as splicing.
 TreeReaderFactory treeReaderFactory()
          factorz for reading in trees from the source you want.
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
dependencyObjectify, getOutputEncoding, lex, lex, 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

ArabicTreebankParserParams

public ArabicTreebankParserParams()
Method Detail

treeReaderFactory

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


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


headFinder

public HeadFinder headFinder()
Description copied from class: AbstractTreebankParserParams
the HeadFinder to use for your treebank.

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

collinizer

public TreeTransformer collinizer()
Stand-in collinizer does nothing to the tree.

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

collinizerEvalb

public TreeTransformer collinizerEvalb()
Stand-in collinizer does nothing to the tree.

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

sisterSplitters

public java.lang.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.

transformTree

public edu.stanford.nlp.parser.lexparser.TreeHeadPair transformTree(Tree t,
                                                                    Tree root,
                                                                    edu.stanford.nlp.parser.lexparser.TreeHeadPair thp)
Description copied from class: AbstractTreebankParserParams
transformTree does language-specific tree transformations such as splicing. Any parameterizations should be inside the specific TreebankLangParserParams class

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

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

setOptionFlag

public int setOptionFlag(java.lang.String[] args,
                         int i)
Some options for setOptionFlag:

-retainNPTmp retain temporal NP marking on NPs. -markGappedVP marked gapped VPs.

Specified by:
setOptionFlag in interface TreebankLangParserParams
Specified by:
setOptionFlag in class AbstractTreebankParserParams
Parameters:
args -
i -
Returns:

defaultTestSentence

public java.util.List defaultTestSentence()
Return a default sentence for the language (for testing)


main

public static void main(java.lang.String[] args)
Loads Arabic Treebank files from the first argument and prints all the trees.