|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
public abstract class AbstractTreebankParserParams
An abstract class providing a common method base from which to
complete a TreebankLangParserParams
implementing class.
Nested Class Summary | |
---|---|
static interface |
AbstractTreebankParserParams.DependencyTyper<T>
|
protected class |
AbstractTreebankParserParams.SubcategoryStripper
|
Field Summary | |
---|---|
protected java.lang.String |
inputEncoding
|
protected java.lang.String |
outputEncoding
|
protected TreebankLanguagePack |
tlp
|
Constructor Summary | |
---|---|
protected |
AbstractTreebankParserParams(TreebankLanguagePack tlp)
Stores the passed-in TreebankLanguagePack. |
Method Summary | ||
---|---|---|
abstract TreeTransformer |
collinizer()
the tree transformer used to produce trees for evaluation. |
|
abstract TreeTransformer |
collinizerEvalb()
the tree transformer used to produce trees for evaluation. |
|
static
|
dependencyObjectify(Tree t,
HeadFinder hf,
TreeTransformer collinizer,
AbstractTreebankParserParams.DependencyTyper<E> typer)
Returns the set of dependencies in a tree, according to some AbstractTreebankParserParams.DependencyTyper . |
|
abstract void |
display()
display language-specific settings |
|
java.lang.String |
getOutputEncoding()
Returns the output encoding being used. |
|
abstract HeadFinder |
headFinder()
the HeadFinder to use for your treebank. |
|
Lexicon |
lex()
|
|
Lexicon |
lex(edu.stanford.nlp.parser.lexparser.Options.LexOptions op)
|
|
abstract MemoryTreebank |
memoryTreebank()
returns a MemoryTreebank appropriate to the treebank source |
|
static java.util.Collection |
parsevalObjectify(Tree t,
TreeTransformer collinizer)
Takes a Tree and a collinizer and returns a Collection of Constituent s for
PARSEVAL evaluation. |
|
java.io.PrintWriter |
pw()
The PrintWriter used to print output. |
|
java.io.PrintWriter |
pw(java.io.OutputStream o)
The PrintWriter used to print output. |
|
void |
setInputEncoding(java.lang.String encoding)
Sets the input encoding. |
|
abstract int |
setOptionFlag(java.lang.String[] args,
int i)
Set language-specific options according to flags. |
|
void |
setOutputEncoding(java.lang.String encoding)
Sets the output encoding. |
|
abstract 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()
You can often return the same thing for testMemoryTreebank as for memoryTreebank |
|
abstract edu.stanford.nlp.parser.lexparser.TreeHeadPair |
transformTree(Tree t,
Tree root,
edu.stanford.nlp.parser.lexparser.TreeHeadPair thp)
transformTree does language-specific tree transformations such as splicing. |
|
TreebankLanguagePack |
treebankLanguagePack()
Returns an appropriate treebankLanguagePack |
|
TokenizerFactory<Tree> |
treeTokenizerFactory()
|
|
static EquivalenceClasser<java.util.List<java.lang.String>> |
typedDependencyClasser()
returns an EquivalenceClasser that classes typed dependencies by the syntactic categories of mother, head and daughter, plus direction. |
|
static java.util.Collection<java.util.List<java.lang.String>> |
typedDependencyObjectify(Tree t,
HeadFinder hf,
TreeTransformer collinizer)
Returns a collection of word-word dependencies typed by mother, head, daughter node syntactic categories. |
|
static java.util.Collection<java.util.List<java.lang.String>> |
untypedDependencyObjectify(Tree t,
HeadFinder hf,
TreeTransformer collinizer)
Returns a collection of untyped word-word dependencies for the tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.nlp.parser.lexparser.TreebankLangParserParams |
---|
defaultTestSentence, diskTreebank, treeReaderFactory |
Field Detail |
---|
protected java.lang.String inputEncoding
protected java.lang.String outputEncoding
protected TreebankLanguagePack tlp
Constructor Detail |
---|
protected AbstractTreebankParserParams(TreebankLanguagePack tlp)
Method Detail |
---|
public void setInputEncoding(java.lang.String encoding)
setInputEncoding
in interface TreebankLangParserParams
public void setOutputEncoding(java.lang.String encoding)
setOutputEncoding
in interface TreebankLangParserParams
public java.lang.String getOutputEncoding()
getOutputEncoding
in interface TreebankLangParserParams
public abstract MemoryTreebank memoryTreebank()
memoryTreebank
in interface TreebankLangParserParams
public MemoryTreebank testMemoryTreebank()
testMemoryTreebank
in interface TreebankLangParserParams
public java.io.PrintWriter pw()
pw
in interface TreebankLangParserParams
public java.io.PrintWriter pw(java.io.OutputStream o)
pw
in interface TreebankLangParserParams
public TreebankLanguagePack treebankLanguagePack()
treebankLanguagePack
in interface TreebankLangParserParams
public abstract HeadFinder headFinder()
headFinder
in interface TreebankLangParserParams
public Lexicon lex()
public Lexicon lex(edu.stanford.nlp.parser.lexparser.Options.LexOptions op)
lex
in interface TreebankLangParserParams
public static java.util.Collection parsevalObjectify(Tree t, TreeTransformer collinizer)
Constituent
s for
PARSEVAL evaluation. Some notes on this particular parseval:
public static java.util.Collection<java.util.List<java.lang.String>> untypedDependencyObjectify(Tree t, HeadFinder hf, TreeTransformer collinizer)
public static java.util.Collection<java.util.List<java.lang.String>> typedDependencyObjectify(Tree t, HeadFinder hf, TreeTransformer collinizer)
public static <E> java.util.Collection<E> dependencyObjectify(Tree t, HeadFinder hf, TreeTransformer collinizer, AbstractTreebankParserParams.DependencyTyper<E> typer)
AbstractTreebankParserParams.DependencyTyper
.
public static EquivalenceClasser<java.util.List<java.lang.String>> typedDependencyClasser()
public abstract TreeTransformer collinizer()
collinizer
in interface TreebankLangParserParams
public abstract TreeTransformer collinizerEvalb()
collinizerEvalb
in interface TreebankLangParserParams
public abstract java.lang.String[] sisterSplitters()
sisterSplitters
in interface TreebankLangParserParams
public TreeTransformer subcategoryStripper()
subcategoryStripper
in interface TreebankLangParserParams
public abstract edu.stanford.nlp.parser.lexparser.TreeHeadPair transformTree(Tree t, Tree root, edu.stanford.nlp.parser.lexparser.TreeHeadPair thp)
transformTree
in interface TreebankLangParserParams
public abstract void display()
display
in interface TreebankLangParserParams
public abstract int setOptionFlag(java.lang.String[] args, int i)
setOptionFlag
in interface TreebankLangParserParams
args
- Array of command line argumentsi
- Index in command line arguments to try to process as an option
public TokenizerFactory<Tree> treeTokenizerFactory()
treeTokenizerFactory
in interface TreebankLangParserParams
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |