|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
edu.stanford.nlp.parser.lexparser.ArabicTreebankParserParams
public class ArabicTreebankParserParams
A TreebankLangParserParams
implementing class for
the Penn Arabic Treebank. The baseline feature set works with either
UTF-8 or Buckwalter input, although the behavior of some unused features depends
on the input encoding.
Nested Class Summary | |
---|---|
protected class |
ArabicTreebankParserParams.ArabicSubcategoryStripper
|
Nested classes/interfaces inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams |
---|
AbstractTreebankParserParams.AnnotatePunctuationFunction, AbstractTreebankParserParams.RemoveGFSubcategoryStripper, AbstractTreebankParserParams.SubcategoryStripper |
Field Summary |
---|
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams |
---|
evalGF, inputEncoding, outputEncoding, tlp |
Constructor Summary | |
---|---|
ArabicTreebankParserParams()
|
Method Summary | |
---|---|
TreeTransformer |
collinizer()
The collinizer eliminates punctuation |
TreeTransformer |
collinizerEvalb()
Stand-in collinizer does nothing to the tree. |
java.util.List<HasWord> |
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. |
Lexicon |
lex()
Returns a lexicon for Arabic. |
Lexicon |
lex(Options.LexOptions op)
Returns a lexicon for Arabic. |
static void |
main(java.lang.String[] args)
|
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. |
TreeTransformer |
subcategoryStripper()
Returns a TreeTransformer that retains categories according to the following options supported by setOptionFlag: |
Tree |
transformTree(Tree t,
Tree root)
This method does language-specific tree transformations such as annotating particular nodes with language-relevant features. |
TreeReaderFactory |
treeReaderFactory()
Creates an ArabicTreeReaderFactory with parameters set
via options passed in from the command line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArabicTreebankParserParams()
Method Detail |
---|
public TreeReaderFactory treeReaderFactory()
ArabicTreeReaderFactory
with parameters set
via options passed in from the command line.
ArabicTreeReaderFactory
public MemoryTreebank memoryTreebank()
AbstractTreebankParserParams
memoryTreebank
in interface TreebankLangParserParams
memoryTreebank
in class AbstractTreebankParserParams
public DiskTreebank diskTreebank()
AbstractTreebankParserParams
diskTreebank
in interface TreebankLangParserParams
diskTreebank
in class AbstractTreebankParserParams
public HeadFinder headFinder()
AbstractTreebankParserParams
headFinder
in interface TreebankLangParserParams
headFinder
in class AbstractTreebankParserParams
public Lexicon lex()
lex
in class AbstractTreebankParserParams
public Lexicon lex(Options.LexOptions op)
lex
in interface TreebankLangParserParams
lex
in class AbstractTreebankParserParams
op
- Lexicon options
public java.util.List<HasWord> defaultTestSentence()
public TreeTransformer subcategoryStripper()
-retainNPTmp
Retain temporal NP marking on NPs.
-retainNPSbj
Retain NP subject function tags
-markPRDverbs
Retain PRD verbs.
subcategoryStripper
in interface TreebankLangParserParams
subcategoryStripper
in class AbstractTreebankParserParams
public TreeTransformer collinizer()
collinizer
in interface TreebankLangParserParams
collinizer
in class AbstractTreebankParserParams
public TreeTransformer collinizerEvalb()
collinizerEvalb
in interface TreebankLangParserParams
collinizerEvalb
in class AbstractTreebankParserParams
public java.lang.String[] sisterSplitters()
AbstractTreebankParserParams
sisterSplitters
in interface TreebankLangParserParams
sisterSplitters
in class AbstractTreebankParserParams
public Tree transformTree(Tree t, Tree root)
AbstractTreebankParserParams
t
. It changes both
labels and the tree shape.
transformTree
in interface TreebankLangParserParams
transformTree
in class AbstractTreebankParserParams
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)
public void display()
AbstractTreebankParserParams
display
in interface TreebankLangParserParams
display
in class AbstractTreebankParserParams
public int setOptionFlag(java.lang.String[] args, int i)
-retainNPTmp
Retain temporal NP marking on NPs.
-retainNPSbj
Retain NP subject function tags
-markGappedVP
marked gapped VPs.
-collinizerRetainsPunctuation
does what it says.
setOptionFlag
in interface TreebankLangParserParams
setOptionFlag
in class AbstractTreebankParserParams
args
- flag arguments (usually from commmand linei
- index at which to begin argument processing
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |