|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreebankLangParserParams
Contains language-specific methods necessary to get the parser to parse an arbitrary treebank.
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<? extends HasWord> |
defaultTestSentence()
Return a default sentence of the language (for testing). |
Extractor |
dependencyGrammarExtractor(Options op)
|
DiskTreebank |
diskTreebank()
returns a DiskTreebank appropriate to the treebank source |
void |
display()
display language-specific settings |
String |
getInputEncoding()
Returns the input encoding being used. |
String |
getOutputEncoding()
Returns the output encoding being used. |
HeadFinder |
headFinder()
|
Lexicon |
lex(Options.LexOptions op)
Vends a Lexicon object suitable to the particular language/treebank combination of interest. |
MemoryTreebank |
memoryTreebank()
returns a MemoryTreebank appropriate to the treebank source |
double[] |
MLEDependencyGrammarSmoothingParams()
Give the parameters for smoothing in the MLEDependencyGrammar. |
PrintWriter |
pw()
returns a PrintWriter used to print output. |
PrintWriter |
pw(OutputStream o)
returns a PrintWriter used to print output to the OutputStream o. |
void |
setInputEncoding(String encoding)
|
int |
setOptionFlag(String[] args,
int i)
Set a language-specific option according to command-line flags. |
void |
setOutputEncoding(String encoding)
|
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()
returns a TreebankLanguagePack containing Treebank-specific (but not parser-specific) info such as what is punctuation, and also information about the structure of labels |
TreeReaderFactory |
treeReaderFactory()
Returns a factory for reading in trees from the source you want. |
TokenizerFactory<Tree> |
treeTokenizerFactory()
|
Methods inherited from interface edu.stanford.nlp.trees.TreebankFactory |
---|
treebank |
Method Detail |
---|
HeadFinder headFinder()
void setInputEncoding(String encoding)
void setOutputEncoding(String encoding)
String getOutputEncoding()
String getInputEncoding()
TreeReaderFactory treeReaderFactory()
Lexicon lex(Options.LexOptions op)
Lexicon
object suitable to the particular language/treebank combination of interest.
op
- Options as to how the Lexicon behaves
TreeTransformer collinizer()
TreeTransformer collinizerEvalb()
MemoryTreebank memoryTreebank()
DiskTreebank diskTreebank()
MemoryTreebank testMemoryTreebank()
TreebankLanguagePack treebankLanguagePack()
PrintWriter pw()
PrintWriter pw(OutputStream o)
String[] sisterSplitters()
TreeTransformer subcategoryStripper()
Tree transformTree(Tree t, Tree root)
t
. It changes both
labels and the tree shape.
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)
void display()
int setOptionFlag(String[] args, int i)
args
- Array of command line argumentsi
- Index in command line arguments to try to process as an option
List<? extends HasWord> defaultTestSentence()
TokenizerFactory<Tree> treeTokenizerFactory()
Extractor dependencyGrammarExtractor(Options op)
double[] MLEDependencyGrammarSmoothingParams()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |