public class FrenchTreebankParserParams extends TregexPoweredTreebankParserParams
TregexPoweredTreebankParserParams.AnnotateHeadFunction, TregexPoweredTreebankParserParams.SimpleStringFunction
AbstractTreebankParserParams.RemoveGFSubcategoryStripper, AbstractTreebankParserParams.SubcategoryStripper
annotations
evalGF, generateOriginalDependencies, inputEncoding, outputEncoding, tlp
Constructor and Description |
---|
FrenchTreebankParserParams() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
baselineAnnotationFeatures()
Features which should be enabled by default.
|
AbstractCollinizer |
collinizer()
the tree transformer used to produce trees for evaluation.
|
AbstractCollinizer |
collinizerEvalb()
the tree transformer used to produce trees for evaluation.
|
java.util.List<HasWord> |
defaultTestSentence()
Return a default sentence of the language (for testing).
|
DiskTreebank |
diskTreebank()
Allows you to read in trees from the source you want.
|
void |
display()
Output a description of the current annotation configuration to
standard error.
|
HeadFinder |
headFinder()
The HeadFinder to use for your treebank.
|
Lexicon |
lex(Options op,
Index<java.lang.String> wordIndex,
Index<java.lang.String> tagIndex)
Vends a
Lexicon object suitable to the particular language/treebank combination of interest. |
MemoryTreebank |
memoryTreebank()
Allows you to read in trees from the source you want.
|
int |
setOptionFlag(java.lang.String[] args,
int i)
Set language-specific options according to flags.
|
java.lang.String[] |
sisterSplitters()
Returns the splitting strings used for selective splits.
|
Tree |
transformTree(Tree t,
Tree root)
This method does language-specific tree transformations such as annotating particular nodes with language-relevant
features.
|
TreeReaderFactory |
treeReaderFactory()
Returns a factory for reading in trees from the source you want.
|
HeadFinder |
typedDependencyHeadFinder()
The HeadFinder to use when extracting typed dependencies.
|
addFeature, compileAnnotations, getAnnotationString, removeFeature
defaultCoreNLPFlags, dependencyGrammarExtractor, generateOriginalDependencies, getGrammaticalStructure, getInputEncoding, getOutputEncoding, isEvalGF, MLEDependencyGrammarSmoothingParams, ppAttachmentEval, processHeadWord, pw, pw, readGrammaticalStructureFromFile, setEvalGF, setEvaluateGrammaticalFunctions, setGenerateOriginalDependencies, setInputEncoding, setOutputEncoding, subcategoryStripper, supportsBasicDependencies, testMemoryTreebank, treebank, treebankLanguagePack, treeTokenizerFactory
protected java.lang.String[] baselineAnnotationFeatures()
baselineAnnotationFeatures
in class TregexPoweredTreebankParserParams
public HeadFinder headFinder()
AbstractTreebankParserParams
headFinder
in interface TreebankLangParserParams
headFinder
in class AbstractTreebankParserParams
public HeadFinder typedDependencyHeadFinder()
AbstractTreebankParserParams
typedDependencyHeadFinder
in interface TreebankLangParserParams
typedDependencyHeadFinder
in class AbstractTreebankParserParams
public Lexicon lex(Options op, Index<java.lang.String> wordIndex, Index<java.lang.String> tagIndex)
TreebankLangParserParams
Lexicon
object suitable to the particular language/treebank combination of interest.lex
in interface TreebankLangParserParams
lex
in class AbstractTreebankParserParams
op
- Lexicon optionspublic java.lang.String[] sisterSplitters()
AbstractTreebankParserParams
sisterSplitters
in interface TreebankLangParserParams
sisterSplitters
in class AbstractTreebankParserParams
public AbstractCollinizer collinizer()
AbstractTreebankParserParams
collinizer
in interface TreebankLangParserParams
collinizer
in class AbstractTreebankParserParams
public AbstractCollinizer collinizerEvalb()
AbstractTreebankParserParams
collinizerEvalb
in interface TreebankLangParserParams
collinizerEvalb
in class AbstractTreebankParserParams
public DiskTreebank diskTreebank()
AbstractTreebankParserParams
diskTreebank
in interface TreebankLangParserParams
diskTreebank
in class AbstractTreebankParserParams
public MemoryTreebank memoryTreebank()
AbstractTreebankParserParams
memoryTreebank
in interface TreebankLangParserParams
memoryTreebank
in class AbstractTreebankParserParams
public TreeReaderFactory treeReaderFactory()
AbstractTreebankParserParams
treeReaderFactory
in interface TreebankLangParserParams
treeReaderFactory
in class AbstractTreebankParserParams
public java.util.List<HasWord> defaultTestSentence()
AbstractTreebankParserParams
defaultTestSentence
in interface TreebankLangParserParams
defaultTestSentence
in class AbstractTreebankParserParams
public Tree transformTree(Tree t, Tree root)
TregexPoweredTreebankParserParams
t
. It changes both labels and the tree shape.transformTree
in interface TreebankLangParserParams
transformTree
in class TregexPoweredTreebankParserParams
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()
TregexPoweredTreebankParserParams
display
in interface TreebankLangParserParams
display
in class TregexPoweredTreebankParserParams
public int setOptionFlag(java.lang.String[] args, int i)
AbstractTreebankParserParams
Generic options are processed separately by
Options.setOption(String[],int)
,
and implementations of this method do not have to worry about them.
The Options class handles routing options.
TreebankParserParams that extend this class should call super when
overriding this method.
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