|
|||||||||
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 TreebankLangParserParams
headFinder
in class AbstractTreebankParserParams
public DiskTreebank diskTreebank()
public MemoryTreebank memoryTreebank()
memoryTreebank
in interface TreebankLangParserParams
memoryTreebank
in class AbstractTreebankParserParams
public TreeReaderFactory treeReaderFactory()
public MemoryTreebank testMemoryTreebank()
testMemoryTreebank
in interface TreebankLangParserParams
testMemoryTreebank
in class AbstractTreebankParserParams
public TreeTransformer collinizer()
collinizer
in interface TreebankLangParserParams
collinizer
in class AbstractTreebankParserParams
public TreeTransformer collinizerEvalb()
AbstractTreebankParserParams
collinizerEvalb
in interface TreebankLangParserParams
collinizerEvalb
in class AbstractTreebankParserParams
public TreebankLanguagePack treebankLanguagePack()
treebankLanguagePack
in interface TreebankLangParserParams
treebankLanguagePack
in class AbstractTreebankParserParams
public PrintWriter pw(OutputStream o)
pw
in interface TreebankLangParserParams
pw
in class AbstractTreebankParserParams
public String[] sisterSplitters()
AbstractTreebankParserParams
sisterSplitters
in interface TreebankLangParserParams
sisterSplitters
in class AbstractTreebankParserParams
public TreeTransformer subcategoryStripper()
subcategoryStripper
in interface TreebankLangParserParams
subcategoryStripper
in class AbstractTreebankParserParams
public Tree transformTree(Tree t, Tree root)
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(String[] args, int i)
setOptionFlag
in interface TreebankLangParserParams
setOptionFlag
in class AbstractTreebankParserParams
args
- 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 |