Parsing Engine

danbikel.parser.english
Class NPArgThreadTraining

java.lang.Object
  extended by danbikel.parser.lang.AbstractTraining
      extended by danbikel.parser.english.Training
          extended by danbikel.parser.english.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, argContextsSym, argNonterminals, baseNP, canonicalAugDelimSym, defaultArgAugmentation, delimAndGapStr, delimAndGapStrLen, gapAugmentation, headFinder, headPostSym, headPreSym, headSym, metadataPropertyPrefix, nodesToPrune, nodesToPruneSym, NP, prunedPreterms, prunedPunctuation, relabelHeadChildrenAsArgs, repairBaseNPs, semTagArgStopListSym, 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)
          Identical to Training.preProcess(danbikel.lisp.Sexp), except that AbstractTraining.threadNPArgAugmentations(danbikel.lisp.Sexp) is invoked after all other preprocessing methods.
 
Methods inherited from class danbikel.parser.english.Training
fixSubjectlessSentences, isTypeOfSentence, postProcess, relabelSubjectlessSentences, removeWord, 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, isValidTree, needToAddNormalNPLevel, preProcessTest, printMetadata, prune, raisePunctuation, readMetadata, readMetadataHook, relabelArgChildren, removeArgAugmentation, removeArgAugmentation, removeGapAugmentation, removeNullElements, removeOnlyChildBaseNPs, 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 English is "parser.training.metadata.english".

Throws:
FileNotFoundException
IOException
Method Detail

preProcess

public Sexp preProcess(Sexp tree)
Identical to Training.preProcess(danbikel.lisp.Sexp), except that AbstractTraining.threadNPArgAugmentations(danbikel.lisp.Sexp) is invoked after all other preprocessing methods.

Specified by:
preProcess in interface Training
Overrides:
preProcess in class Training
Parameters:
tree - the tree to be pre-processed
Returns:
the specified tree, modified by pre-processing methods

main

public static void main(String[] args)
Test driver for this class.


Parsing Engine

Author: Dan Bikel.