Parsing Engine

danbikel.parser.chinese
Class NoNPBTraining

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

public class NoNPBTraining
extends Training

This class is identical to its superclass Training, except that it overrides AbstractTraining.addBaseNPs(Sexp) to do nothing.

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
NoNPBTraining()
          The default constructor, to be invoked by Language.
 
Method Summary
 Sexp addBaseNPs(Sexp tree)
          We override this method from the default implementation so that it does nothing.
static void main(String[] args)
          Test driver for this class.
 
Methods inherited from class danbikel.parser.chinese.Training
combineRightSiblingsOfDe5, relabelSubjectlessSentences, unrepairBaseNPs
 
Methods inherited from class danbikel.parser.lang.AbstractTraining
addArgAugmentation, 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, preProcess, 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

NoNPBTraining

public NoNPBTraining()
              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

addBaseNPs

public Sexp addBaseNPs(Sexp tree)
We override this method from the default implementation so that it does nothing. This is the primary purpose of this class.

Specified by:
addBaseNPs in interface Training
Overrides:
addBaseNPs in class AbstractTraining
Parameters:
tree - the parse tree in which to add and/or relabel base NPs
Returns:
a reference to the modified version of tree
See Also:
AbstractTraining.hasPossessiveChild(Sexp), Treebank.isNP(Symbol), Treebank.baseNPLabel(), Treebank.NPLabel()

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.