|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams
An abstract class providing a common method base from which to
complete a TreebankLangParserParams
implementing class.
With some extending classes you'll want to have access to special attributes of the corresponding TreebankLanguagePack while taking advantage of this class's code for making the TreebankLanguagePack accessible. A good way to do this is to pass a new instance of the appropriate TreebankLanguagePack into this class's constructor, then get it back later on by casting a call to treebankLanguagePack(). See ChineseTreebankParserParams for an example.
Field Summary | |
protected String |
inputEncoding
|
protected 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. |
abstract void |
display()
display language-specific settings |
abstract HeadFinder |
headFinder()
the HeadFinder to use for your treebank. |
abstract Lexicon |
lex()
reads in trees from the source you want. |
abstract MemoryTreebank |
memoryTreebank()
returns a MemoryTreebank appropriate to the treebank source |
PrintWriter |
pw()
the PrintWriter used to print output. |
PrintWriter |
pw(OutputStream o)
the PrintWriter used to print output. |
void |
setInputEncoding(String encoding)
sets the input encoding |
abstract int |
setOptionFlag(String[] args,
int i)
Set language-specific options according to flags. |
void |
setOutputEncoding(String encoding)
sets the output encoding |
abstract String[] |
sisterSplitters()
Returns the splitting strings used for selective splits. |
abstract String[] |
splitters()
Returns the splitting strings used for selective splits. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String inputEncoding
protected String outputEncoding
protected TreebankLanguagePack tlp
Constructor Detail |
protected AbstractTreebankParserParams(TreebankLanguagePack tlp)
Method Detail |
public void setInputEncoding(String encoding)
setInputEncoding
in interface TreebankLangParserParams
public void setOutputEncoding(String encoding)
setOutputEncoding
in interface TreebankLangParserParams
public abstract MemoryTreebank memoryTreebank()
memoryTreebank
in interface TreebankLangParserParams
public MemoryTreebank testMemoryTreebank()
testMemoryTreebank
in interface TreebankLangParserParams
public PrintWriter pw()
pw
in interface TreebankLangParserParams
public PrintWriter pw(OutputStream o)
pw
in interface TreebankLangParserParams
public TreebankLanguagePack treebankLanguagePack()
treebankLanguagePack
in interface TreebankLangParserParams
public abstract HeadFinder headFinder()
headFinder
in interface TreebankLangParserParams
public abstract Lexicon lex()
TreebankLangParserParams
lex
in interface TreebankLangParserParams
public abstract TreeTransformer collinizer()
collinizer
in interface TreebankLangParserParams
public abstract TreeTransformer collinizerEvalb()
collinizerEvalb
in interface TreebankLangParserParams
public abstract String[] splitters()
splitters
in interface TreebankLangParserParams
public abstract String[] sisterSplitters()
sisterSplitters
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(String[] args, int i)
setOptionFlag
in interface TreebankLangParserParams
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |