Parsing Engine

danbikel.parser.chinese
Class NPArgThreadTraining

java.lang.Object
  extended by danbikel.parser.lang.AbstractTraining
      extended by danbikel.parser.chinese.Training
          extended by danbikel.parser.chinese.NPArgThreadTraining
All Implemented Interfaces:
Training, Serializable

public class NPArgThreadTraining
extends Training

This class is identical to Training, except that the preProcess(Sexp) method invokes AbstractTraining.threadNPArgAugmentations(Sexp).

See Also:
Serialized Form

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 danbikel.parser.lang.AbstractTraining
addArgAugmentation, addBaseNPs, addGapInformation, argNonterminals, canonicalizeNonterminals, collectPreterms, createArgAugmentationsList, createArgNonterminalsSet, defaultArgAugmentation, gapAugmentation, getCanonicalArg, getCanonicalArg, getPrunedPreterms, getPrunedPunctuation, hasGap, hasGap, hasPossessiveChild, headPostSym, headPreSym, headSym, identifyArguments, isAllNodesToPrune, isArgument, isArgument, isArgument, isArgumentFast, isCoordinatedPhrase, isTypeOfSentence, isValidTree, needToAddNormalNPLevel, postProcess, preProcessTest, printMetadata, prune, raisePunctuation, readMetadata, readMetadataHook, relabelArgChildren, removeArgAugmentation, removeArgAugmentation, removeGapAugmentation, removeNullElements, removeOnlyChildBaseNPs, removeWord, repairBaseNPs, repairBaseNPs, setUpFastArgMap, skip, startSym, startWord, staticSetUpFastArgMap, stopSym, stopWord, stripAugmentations, stripAugmentations, stripAugmentations, threadNPArgAugmentations, topSym, topWord, traceTag, transformSubjectNTs, unaryProductionsToNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPArgThreadTraining

public NPArgThreadTraining()
                    throws FileNotFoundException,
                           IOException
The default constructor, to be invoked by 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".

Throws:
FileNotFoundException
IOException
Method Detail

preProcess

public 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).

Specified by:
preProcess in interface Training
Overrides:
preProcess in class AbstractTraining
Parameters:
tree - the tree to be preprocessed in-place
Returns:
a preprocessed version of the specified tree

main

public static void main(String[] args)
Test driver for this class. Simply invokes main of the superclass with the specified argument array.

See Also:
Training.main(String[])

Parsing Engine

Author: Dan Bikel.