|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.lang.AbstractTraining
danbikel.parser.chinese.Training
danbikel.parser.chinese.NPArgThreadTraining
public class NPArgThreadTraining
This class is identical to Training
, except
that the preProcess(Sexp)
method invokes
AbstractTraining.threadNPArgAugmentations(Sexp)
.
Field Summary |
---|
Fields inherited from class danbikel.parser.lang.AbstractTraining |
---|
addGapInfo, argAugmentations, argContexts, argNonterminals, baseNP, canonicalAugDelimSym, defaultArgAugmentation, delimAndGapStr, delimAndGapStrLen, gapAugmentation, headFinder, headPostSym, headPreSym, headSym, metadataPropertyPrefix, nodesToPrune, NP, prunedPreterms, prunedPunctuation, relabelHeadChildrenAsArgs, repairBaseNPs, semTagArgStopSet, traceTag, treebank, wordsToPrune |
Constructor Summary | |
---|---|
NPArgThreadTraining()
The default constructor, to be invoked by Language . |
Method Summary | |
---|---|
static void |
main(String[] args)
Test driver for this class. |
Sexp |
preProcess(Sexp tree)
Performs all the preprocessing setps of the overridden AbstractTraining.preProcess(Sexp) method of the superclass, and then provides an
additional preprocessing step by invoking AbstractTraining.threadNPArgAugmentations(Sexp) . |
Methods inherited from class danbikel.parser.chinese.Training |
---|
combineRightSiblingsOfDe5, relabelSubjectlessSentences, unrepairBaseNPs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NPArgThreadTraining() throws FileNotFoundException, IOException
Language
.
This constructor looks for a resource named by the property
metadataPropertyPrefix + language
where metadataPropertyPrefix
is the value of
the constant AbstractTraining.metadataPropertyPrefix
and language
is the value of Settings.get(Settings.language)
.
For example, the property for Chinese is
"parser.training.metadata.chinese"
.
FileNotFoundException
IOException
Method Detail |
---|
public Sexp preProcess(Sexp tree)
AbstractTraining.preProcess(Sexp)
method of the superclass, and then provides an
additional preprocessing step by invoking AbstractTraining.threadNPArgAugmentations(Sexp)
.
preProcess
in interface Training
preProcess
in class AbstractTraining
tree
- the tree to be preprocessed in-place
public static void main(String[] args)
main
of the
superclass with the specified argument array.
Training.main(String[])
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |