|
|||||||||
| 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.SubcategoryStripper |
| Field Summary |
|---|
| Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams |
|---|
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. |
List |
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 |
HeadFinder |
headFinder()
the HeadFinder to use for your treebank. |
static void |
main(String[] args)
|
MemoryTreebank |
memoryTreebank()
Allows you to read in trees from the source you want. |
PrintWriter |
pw(OutputStream o)
The PrintWriter used to print output to OutputStream o. |
int |
setOptionFlag(String[] args,
int i)
Set language-specific options according to flags. |
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 |
| Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams |
|---|
dependencyGrammarExtractor, dependencyObjectify, getInputEncoding, getOutputEncoding, lex, lex, MLEDependencyGrammarSmoothingParams, parsevalObjectify, parsevalObjectify, pw, setInputEncoding, setOutputEncoding, treeTokenizerFactory, typedDependencyClasser, typedDependencyObjectify, untypedDependencyObjectify |
| 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 DiskTreebank diskTreebank()
public 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 PrintWriter pw(OutputStream o)
pw in interface TreebankLangParserParamspw in class AbstractTreebankParserParamspublic 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(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 List defaultTestSentence()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||