|
|||||||||
| 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.EnglishTreebankParserParams
public class EnglishTreebankParserParams
Parser parameters for the Penn English Treebank (WSJ, Brown, Switchboard).
| Nested Class Summary | |
|---|---|
protected class |
EnglishTreebankParserParams.EnglishSubcategoryStripper
|
static class |
EnglishTreebankParserParams.EnglishTest
|
static class |
EnglishTreebankParserParams.EnglishTrain
|
| 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 | |
|---|---|
EnglishTreebankParserParams()
|
|
| Method Summary | |
|---|---|
TreeTransformer |
collinizer()
The tree transformer used to produce trees for evaluation. |
TreeTransformer |
collinizerEvalb()
the tree transformer used to produce trees for evaluation. |
java.util.List<Word> |
defaultTestSentence()
Return a default sentence for the language (for testing) |
DiskTreebank |
diskTreebank()
Allows you to read in trees from the source you want. |
void |
display()
display language-specific settings |
GrammaticalStructure |
getGrammaticalStructure(Tree t,
Filter<java.lang.String> filter,
HeadFinder hf)
Build a GrammaticalStructure from a Tree. |
HeadFinder |
headFinder()
The HeadFinder to use for your treebank. |
Lexicon |
lex(Options op,
Index<java.lang.String> wordIndex,
Index<java.lang.String> tagIndex)
Vends a Lexicon object suitable to the particular language/treebank combination of interest. |
static void |
main(java.lang.String[] args)
|
MemoryTreebank |
memoryTreebank()
Allows you to read in trees from the source you want. |
java.io.PrintWriter |
pw(java.io.OutputStream o)
The PrintWriter used to print output to OutputStream o. |
java.util.List<GrammaticalStructure> |
readGrammaticalStructureFromFile(java.lang.String filename)
Returns a function which reads the given filename and turns its content in a list of GrammaticalStructures. |
int |
setOptionFlag(java.lang.String[] args,
int i)
Set language-specific options according to flags. |
java.lang.String[] |
sisterSplitters()
Returns the splitting strings used for selective splits. |
TreeTransformer |
subcategoryStripper()
Returns a TreeTransformer appropriate to the Treebank which can be used to remove functional tags (such as "-TMP") from categories. |
MemoryTreebank |
testMemoryTreebank()
returns a MemoryTreebank appropriate to the testing treebank source |
Tree |
transformTree(Tree t,
Tree root)
This method does language-specific tree transformations such as annotating particular nodes with language-relevant features. |
TreebankLanguagePack |
treebankLanguagePack()
contains Treebank-specific (but not parser-specific) info such as what is punctuation, and also information about the structure of labels |
TreeReaderFactory |
treeReaderFactory()
Makes appropriate TreeReaderFactory with all options specified |
HeadFinder |
typedDependencyHeadFinder()
The HeadFinder to use when extracting typed dependencies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnglishTreebankParserParams()
| Method Detail |
|---|
public HeadFinder headFinder()
AbstractTreebankParserParams
headFinder in interface TreebankLangParserParamsheadFinder in class AbstractTreebankParserParamspublic HeadFinder typedDependencyHeadFinder()
AbstractTreebankParserParams
typedDependencyHeadFinder in interface TreebankLangParserParamstypedDependencyHeadFinder in class AbstractTreebankParserParamspublic DiskTreebank diskTreebank()
diskTreebank in interface TreebankLangParserParamsdiskTreebank in class AbstractTreebankParserParamspublic MemoryTreebank memoryTreebank()
memoryTreebank in interface TreebankLangParserParamsmemoryTreebank in class AbstractTreebankParserParamspublic TreeReaderFactory treeReaderFactory()
public MemoryTreebank testMemoryTreebank()
testMemoryTreebank in interface TreebankLangParserParamstestMemoryTreebank in class AbstractTreebankParserParamspublic TreeTransformer collinizer()
collinizer in interface TreebankLangParserParamscollinizer in class AbstractTreebankParserParamspublic TreeTransformer collinizerEvalb()
AbstractTreebankParserParams
collinizerEvalb in interface TreebankLangParserParamscollinizerEvalb in class AbstractTreebankParserParamspublic TreebankLanguagePack treebankLanguagePack()
treebankLanguagePack in interface TreebankLangParserParamstreebankLanguagePack in class AbstractTreebankParserParamspublic java.io.PrintWriter pw(java.io.OutputStream o)
pw in interface TreebankLangParserParamspw in class AbstractTreebankParserParams
public Lexicon lex(Options op,
Index<java.lang.String> wordIndex,
Index<java.lang.String> tagIndex)
TreebankLangParserParamsLexicon object suitable to the particular language/treebank combination of interest.
lex in interface TreebankLangParserParamslex in class AbstractTreebankParserParamsop - Options as to how the Lexicon behaves
public java.lang.String[] sisterSplitters()
AbstractTreebankParserParams
sisterSplitters in interface TreebankLangParserParamssisterSplitters in class AbstractTreebankParserParamspublic TreeTransformer subcategoryStripper()
subcategoryStripper in interface TreebankLangParserParamssubcategoryStripper in class AbstractTreebankParserParams
public Tree transformTree(Tree t,
Tree root)
t. It changes both
labels and the tree shape.
transformTree in interface TreebankLangParserParamstransformTree in class AbstractTreebankParserParamst - 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 TreebankLangParserParamsdisplay in class AbstractTreebankParserParams
public int setOptionFlag(java.lang.String[] args,
int i)
setOptionFlag in interface TreebankLangParserParamssetOptionFlag in class AbstractTreebankParserParamsargs - Array of command line argumentsi - Index in command line arguments to try to process as an option
public java.util.List<Word> defaultTestSentence()
public java.util.List<GrammaticalStructure> readGrammaticalStructureFromFile(java.lang.String filename)
TreebankLangParserParams
readGrammaticalStructureFromFile in interface TreebankLangParserParamsreadGrammaticalStructureFromFile in class AbstractTreebankParserParams
public GrammaticalStructure getGrammaticalStructure(Tree t,
Filter<java.lang.String> filter,
HeadFinder hf)
TreebankLangParserParams
getGrammaticalStructure in interface TreebankLangParserParamsgetGrammaticalStructure in class AbstractTreebankParserParamspublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||