|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Symbol | |
---|---|
danbikel.lisp | Provides classes to create, read and manipulate symbolic expressions (S-expressions), including interned symbols. |
danbikel.parser | Provides the core framework of this extensible statistical parsing engine. |
danbikel.parser.arabic | Provides language-specific classes necessary to parse Arabic. |
danbikel.parser.chinese | Provides language-specific classes necessary to parse Chinese. |
danbikel.parser.constraints | Provides interfaces and classes to allow constrain-parsing. |
danbikel.parser.english | Provides language-specific classes necessary to parse English. |
danbikel.parser.lang | Provides default abstract base classes for the required interfaces of a language package. |
danbikel.parser.util | Utility classes for displaying and manipulating parse trees. |
Uses of Symbol in danbikel.lisp |
---|
Subclasses of Symbol in danbikel.lisp | |
---|---|
class |
IntSymbol
IntSymbol objects associate integers with unique references. |
class |
StringSymbol
StringSymbol objects associate strings with unique references. |
Methods in danbikel.lisp that return Symbol | |
---|---|
static Symbol |
Symbol.add(int intValue)
A convenience method for add(Integer) : the specified
int is first wrapped in an Integer object and
then added to the internal symbol map. |
static Symbol |
Symbol.add(Integer intKey)
A synonym for get(Integer) . |
static Symbol |
Symbol.add(String str)
A synonym for get(String) . |
static Symbol |
Symbol.get(int intValue)
A convenience method for add(Integer) : the specified
int is first wrapped in an Integer object and
then added to the internal symbol map. |
static Symbol |
Symbol.get(Integer intKey)
Returns the unique Symbol whose integer value is that of
intKey . |
static Symbol |
Symbol.get(String str)
Returns the unique Symbol whose string key is
str . |
Symbol |
SexpList.getChildLabel(int index)
This convenience method gets the symbol that is the first element of the list that is the element at index . |
Symbol |
Sexp.symbol()
Returns this object cast to a Symbol . |
Symbol |
SexpList.symbolAt(int index)
Returns the symbol at the specified index. |
Methods in danbikel.lisp with parameters of type Symbol | |
---|---|
void |
SexpList.setChildLabel(int index,
Symbol newLabel)
This convenience method replaces the first element of the list that is the element at index to be the symbol newLabel . |
Uses of Symbol in danbikel.parser |
---|
Fields in danbikel.parser declared as Symbol | |
---|---|
Symbol |
Nonterminal.base
The unaugmented base nonterminal. |
static Symbol |
Collins.conjSym
The conjunction equivalence class. |
static Symbol |
Constants.falseSym
A symbol constant to represent falsity. |
protected Symbol |
Word.features
A word-feature vector of Word.word . |
static Symbol |
Constants.firstSym
The symbol constant indicating to match the first child node in the natural walk of a parent's children in a syntax tree (left-to-right, in English). |
protected Symbol |
Trainer.gapAugmentation
The value of Training.gapAugmentation() . |
static Symbol |
Trainer.gapEventSym
The label for gap events. |
static Symbol |
Trainer.headEventSym
The label for head nonterminal generation events. |
static Symbol |
Constants.kleeneStarSym
A symbol constant to represent Kleene star. |
protected Symbol |
CKYItem.label
The label of this chart item. |
static Symbol |
Constants.lastSym
The symbol constant indicating to match the last child node in the reverse of the natural walk of a parent's children in a syntax tree (right-to-left, in English). |
static Symbol |
Constants.leftSym
The symbol constant representing the left side or the left-to-right direction. |
static Symbol |
Collins.miscSym
The miscellaneous equivalence class. |
static Symbol |
Trainer.modEventSym
The label for modifier nonterminal generation events. |
protected Symbol[] |
ModelCollection.nonterminalArr
An array of all nonterminal labels, providing a mapping of unique integers (indices into this array) to nonterminal labels. |
static Symbol |
Trainer.nonterminalEventSym
The label for nonterminal generation events. |
protected Symbol[] |
Decoder.nonterminals
An array of all nonterminals observed in training, that is initialized and filled in at construction time. |
static Symbol |
Constants.notSym
A symbol constant to represent negation. |
static Symbol |
Trainer.posMapSym
The label for word to part-of-speech mappings. |
static Symbol |
Trainer.prunedPretermSym
The label for the set of pruned preterminals. |
static Symbol |
Trainer.prunedPuncSym
The label for the set of pruned punctuation preterminals. |
static Symbol |
Collins.puncSym
The punctuation equivalence class. |
static Symbol |
Constants.rightSym
The symbol constant representing the right side or the right-to-left direction. |
static Symbol |
SexpEvent.sexpLabel
Initial symbol used in the string representation of SexpEvent
objects. |
static Symbol |
SexpSubcatEvent.sexpSubcatLabel
Initial symbol used in the string representation of SexpSubcatEvent objects. |
protected static Symbol |
CKYItem.PrevModIsStart.startSym
|
static Symbol |
Collins.startSym
The start symbol equivalence class. |
protected Symbol |
Decoder.startSym
The value of Training.startSym() , cached here for efficiency
and convenience. |
protected Symbol |
Trainer.startSym
The value of Training.startSym() . |
protected Symbol |
Decoder.stopSym
The value of Training.stopSym() , cached here for efficiency
and convenience. |
protected Symbol |
Trainer.stopSym
The value of Training.stopSym() . |
protected Symbol |
Word.tag
The part-of-speech of Word.word . |
static Symbol |
GapEvent.toHead
The symbol representing a gap passed from a parent to its head. |
static Symbol |
GapEvent.toLeft
The symbol representing a gap passed from a parent to one of the premodifiers of its head child. |
protected static Symbol |
CKYItem.topSym
The value of Training.topSym() , cached for efficiency and
convenience. |
protected Symbol |
Decoder.topSym
The value of Training.topSym() , cached here for efficiency
and convenience. |
protected Symbol |
Trainer.topSym
The value of Training.topSym() . |
static Symbol |
GapEvent.toRight
The symbol representing a gap passed from a parent to one of the postmodifiers of its head child. |
protected Symbol |
Trainer.traceTag
The value of Training.traceTag() . |
static Symbol |
Constants.trueSym
A symbol constant to represent truth. |
static Symbol |
Trainer.vocabSym
The label for vocabulary counts. |
protected Symbol |
Word.word
The word itself. |
static Symbol |
Trainer.wordFeatureSym
The label for word feature (unknown vocabulary) counts. |
Methods in danbikel.parser that return Symbol | |
---|---|
Symbol |
Treebank.baseNPLabel()
Returns the symbol with which Training.addBaseNPs(Sexp) will
relabel core NPs. |
static Symbol |
Constants.booleanToSym(boolean value)
Converts a boolean value into a symbol representation. |
Symbol |
Training.defaultArgAugmentation()
The symbol that is used to mark argument (required) nonterminals by Training.identifyArguments(Sexp) . |
Symbol |
WordFeatures.defaultFeatureVector()
The symbol that represents the case where none of the features fires for a particular word. |
Symbol |
GapEvent.direction()
Returns the direction of this gap event: one of { GapEvent.toHead ,
GapEvent.toLeft , GapEvent.toRight }. |
Symbol |
Word.features()
Returns the features of this word, or null if no features
have been set for this word. |
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word. |
Symbol |
SymbolPair.first()
Returns the first symbol in this pair. |
Symbol |
Training.gapAugmentation()
The symbol that will be used to identify nonterminals whose subtrees contain a gap (a trace). |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical version of the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
Returns a canonical version of the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Training.getCanonicalArg(Symbol argLabel)
Returns the canonical version of the specified argument nonterminal, crucially including its argument augmentation. |
protected Symbol |
Decoder.getExampleWordForTag(Symbol tag)
Returns a known word that was observed with the specified part of speech tag. |
protected Symbol |
HeadTreeNode.getHeadWordLabel()
|
protected Symbol |
CKYItem.getLabel(Symbol label,
boolean isHeadChild)
Helper method used by CKYItem.toSexpInternal(boolean) , to provide a
layer of abstraction so that the label can include, e.g., head
information. |
Symbol[] |
ModelCollection.getNonterminalArr()
Returns the ModelCollection.nonterminalArr member. |
Symbol |
Treebank.getTag(Sexp preterminal)
Gets the component of the preterminal tree that corresponds to the part of speech tag. |
Symbol |
GapEvent.head()
Returns the head nonterminal label. |
Symbol |
HeadEvent.head()
Returns the head nonterminal label of this head event. |
Symbol |
ModifierEvent.head()
Returns the head child nonterminal label. |
Symbol |
CKYItem.headLabel()
Returns the root nonterminal label of the derivation of this item's head child. |
Symbol |
CKYItem.BaseNPAware.headLabel()
|
Symbol |
PriorEvent.history()
Returns the same symbol for all instances of this class, so that priors may be computed via the same mechanism as conditional probabilities: if the conditioning context is the same for all events counted, then the MLEs for those conditional events are the same as would be the MLEs for the prior probabilities of the predicted events. |
Symbol |
HeadTreeNode.label()
Gets the nonterminal label for this node. |
Symbol |
PriorEvent.label()
Returns the nonterminal label of this event. |
Symbol |
Collins.map(Symbol nonterminal)
Maps the specified nonterminal to one of four equivalence classes. |
Symbol |
IdentityNTMapper.map(Symbol label)
Returns the specified label unchanged (the identity mapping function). |
static Symbol |
NTMapper.map(Symbol nonterminal)
Maps the specified nonterminal to another symbol, via an internal instance of NonterminalMapper whose concrete type is determined by
the value of the Settings.prevModMapperClass setting. |
Symbol |
NonterminalMapper.map(Symbol label)
Maps the specified nonterminal label to some other symbol (typically an equivalence class). |
static Symbol |
Collins.mapPrevMod(Symbol prevMod)
Deprecated. Classes should now use NTMapper.map(Symbol) , since the
NTMapper class provides the flexibility of using an
internal NonterminalMapper instance created at run-time
according to the Settings.prevModMapperClass setting. |
Symbol |
ModifierEvent.modifier()
Returns the nonterminal label of this modifier event. |
Symbol |
Treebank.NPLabel()
Returns the symbol that Training.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
HeadTreeNode.originalHeadWord()
Gets the original version of the head word. |
Symbol |
GapEvent.parent()
Returns the parent nonterminal label. |
Symbol |
HeadEvent.parent()
Returns the parent nonterminal label of this head event. |
Symbol |
ModifierEvent.parent()
Returns the parent nonterminal label. |
Symbol |
PriorEvent.parent()
Returns null . |
Symbol |
TrainerEvent.parent()
Returns the parent symbol of this event, or null if
this event has no such object. |
Symbol |
Training.removeArgAugmentation(Symbol label)
Removes any argument augmentations from the specified nonterminal label. |
Symbol |
SymbolPair.second()
Returns the second symbol in this pair. |
Symbol |
Treebank.sentenceLabel()
Returns the canonical label for a sentence, for de-transforming sentences that were transformed via Training.relabelSubjectlessSentences(Sexp) . |
static Symbol |
Constants.sideToSym(boolean side)
Converts the boolean value of Constants.LEFT into Constants.leftSym
and converts the boolean value of Constants.RIGHT into Constants.rightSym . |
Symbol |
Training.startSym()
Returns the symbol to indicate hidden nonterminals that precede the first in a sequence of modifier nonterminals. |
Symbol |
Training.stopSym()
Returns the symbol to indicate a hidden nonterminal that follows the last in a sequence of modifier nonterminals. |
Symbol |
Treebank.stripAllButIndex(Symbol label)
Returns a symbol identical to the specified label , except
all augmentations other than the index will be removed. |
Symbol |
Treebank.stripAllButIndex(Symbol label,
Nonterminal nonterminal)
Identical to Treebank.stripAllButIndex(Symbol) , except that instead of
creating a new Nonterminal object for use by
Treebank.parseNonterminal(Symbol,Nonterminal) , this method
uses the specified nonterminal object. |
Symbol |
Treebank.stripAugmentation(Symbol label)
Returns the Symbol created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
Treebank.augmentationDelimiters() . |
Symbol |
Treebank.stripIndex(Symbol label)
Returns label , but stripped of any index augmentation. |
Symbol |
Treebank.stripIndex(Symbol label,
Nonterminal nonterminal)
Identical to Treebank.stripIndex(Symbol) , except that instead of creating
a new Nonterminal object for use by Treebank.parseNonterminal(Symbol,Nonterminal) , this method simply passes the
specified nonterminal object. |
Symbol |
Treebank.subjectAugmentation()
Returns the symbol that is used to augment nonterminals to indicate matrix subjects in the current language's Treebank. |
Symbol |
Treebank.subjectlessSentenceLabel()
Returns the symbol with which Training.relabelSubjectlessSentences(Sexp)
will relabel sentences when they have no subjects. |
Symbol |
Word.tag()
Returns the part-of-speech tag of this word. |
Symbol |
Training.topSym()
Returns the symbol to indicate the hidden root of all parse trees. |
Symbol |
Nonterminal.toSymbol()
Returns the symbol representing this complex nonterminal. |
Symbol |
Training.traceTag()
The symbol that gets reassigned as the part of speech for null preterminals that represent traces that have undergone WH-movement, as relabeled by the default implementation of Training.addGapInformation(Sexp) . |
Symbol |
Word.word()
Returns the word itself of this Word object. |
Methods in danbikel.parser with parameters of type Symbol | |
---|---|
Subcat |
BrokenSubcatBag.add(Symbol requirement)
Adds the specified requirement to this subcat bag. |
Subcat |
Subcat.add(Symbol requirement)
Adds the specified nonterminal to the required arguments of this subcat frame. |
Subcat |
SubcatBag.add(Symbol requirement)
Adds the specified requirement to this subcat bag. |
Subcat |
SubcatList.add(Symbol requirement)
Adds the specified requirement to this subcat list. |
void |
Treebank.addAugmentation(Nonterminal nonterminal,
Symbol augmentation)
Adds the specified augmentation to the end of the (possibly empty) augmentation list of the specified Nonterminal object. |
protected void |
Trainer.addToPosMap(Symbol word,
Symbol tag)
Called by Trainer.addToPosMap(Word) . |
boolean |
BrokenSubcatBag.contains(Symbol requirement)
|
boolean |
Subcat.contains(Symbol requirement)
Returns true if this subcat frame contains the
specified requirement. |
boolean |
SubcatBag.contains(Symbol requirement)
|
boolean |
SubcatList.contains(Symbol requirement)
|
boolean |
Treebank.containsAugmentation(Symbol nonterminal,
Symbol augmentation)
Provides an efficient, thread-safe method for testing whether the specified nonterminal contains the specified augmentation (without parsing the nonterminal). |
Sexp |
CachingDecoderServer.convertUnknownWord(Symbol originalWord,
int index)
Returns either the specified word untouched, or a 3-element list as would be created by CachingDecoderServer.convertUnknownWords(SexpList) . |
Sexp |
DecoderServer.convertUnknownWord(Symbol originalWord,
int index)
|
Sexp |
DecoderServerRemote.convertUnknownWord(Symbol originalWord,
int index)
Returns either the specified word untouched, or a 3-element list as would be created by DecoderServerRemote.convertUnknownWords(SexpList) . |
void |
Treebank.defaultParseNonterminal(Symbol label,
Nonterminal nonterminal)
Fills in the specified Nonterminal object to represent
all the components of a complex nonterminal annotation: the base label,
any augmentations and any index. |
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word. |
int |
HeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs → rhs . |
Word |
DefaultWordFactory.get(Symbol word,
Symbol tag)
|
Word |
WordFactory.get(Symbol word,
Symbol tag)
Constructs a Word object from the specified symbols. |
static Word |
Words.get(Symbol word,
Symbol tag)
Returns a new Word instance constructed from the specified word and
tag symbols. |
Word |
DefaultWordFactory.get(Symbol word,
Symbol tag,
Symbol features)
|
Word |
WordFactory.get(Symbol word,
Symbol tag,
Symbol features)
Constructs a Word object from the specified symbols. |
static Word |
Words.get(Symbol word,
Symbol tag,
Symbol features)
Returns a new Word instance constructed from the specified word,
tag and feature-vector symbols. |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical version of the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
Returns a canonical version of the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Training.getCanonicalArg(Symbol argLabel)
Returns the canonical version of the specified argument nonterminal, crucially including its argument augmentation. |
static Iterator |
Trainer.getEventIterator(SexpTokenizer tokenizer,
Symbol type)
Returns an iterator over TrainerEvent objects that were written
out in S-expression form. |
protected Symbol |
Decoder.getExampleWordForTag(Symbol tag)
Returns a known word that was observed with the specified part of speech tag. |
protected Symbol |
CKYItem.getLabel(Symbol label,
boolean isHeadChild)
Helper method used by CKYItem.toSexpInternal(boolean) , to provide a
layer of abstraction so that the label can include, e.g., head
information. |
protected SexpList |
Decoder.getTagSet(SexpList tags,
int wordIdx,
Symbol word,
boolean wordIsUnknown,
Symbol origWord,
HashSet tmpSet)
Gets the set of possible part-of-speech tags for a word in the sentence to be parsed. |
boolean |
Training.hasGap(Symbol label)
Returns true if and only if label has a
gap augmentation as added by Training.addGapInformation(Sexp) . |
boolean |
Training.isArgument(Symbol label)
Returns true if and only if label has an
argument augmentation as added by Training.identifyArguments(Sexp) . |
boolean |
Training.isArgumentFast(Symbol label)
Returns true if and only if the specified nonterminal
label has an argument augmentation preceded by the canonical
augmentaion delimiter. |
boolean |
Treebank.isBaseNP(Symbol label)
Returns whether the specified label is for a base NP. |
boolean |
Treebank.isComma(Symbol word)
Returns true if the specified word is a comma. |
boolean |
Treebank.isConjunction(Symbol label)
Returns true if the canonical version of the specified label
is a conjunction tag or nonterminal in a particular Treebank. |
boolean |
Treebank.isLeftParen(Symbol word)
Returns true if the specified word is a left
parenthesis. |
boolean |
Treebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for the current language's Treebank. |
boolean |
Treebank.isPunctuation(Symbol tag)
Returns true if the specified part of speech tag is one
for which Treebank.isPuncToRaise(Sexp) would return true . |
boolean |
Treebank.isRightParen(Symbol word)
Returns true if the specified word is a right
parenthesis. |
boolean |
Treebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in the current language's Treebank. |
boolean |
Treebank.isVerbTag(Symbol tag)
Returns true if the specified symbol is the part of speech
tag of a verb. |
boolean |
Treebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP that undergoes WH-movement in a particular Treebank. |
Symbol |
Collins.map(Symbol nonterminal)
Maps the specified nonterminal to one of four equivalence classes. |
Symbol |
IdentityNTMapper.map(Symbol label)
Returns the specified label unchanged (the identity mapping function). |
static Symbol |
NTMapper.map(Symbol nonterminal)
Maps the specified nonterminal to another symbol, via an internal instance of NonterminalMapper whose concrete type is determined by
the value of the Settings.prevModMapperClass setting. |
Symbol |
NonterminalMapper.map(Symbol label)
Maps the specified nonterminal label to some other symbol (typically an equivalence class). |
static Symbol |
Collins.mapPrevMod(Symbol prevMod)
Deprecated. Classes should now use NTMapper.map(Symbol) , since the
NTMapper class provides the flexibility of using an
internal NonterminalMapper instance created at run-time
according to the Settings.prevModMapperClass setting. |
Nonterminal |
Treebank.parseNonterminal(Symbol label)
Returns a Nonterminal object to represent all the
components of a complex nonterminal annotation: the base label, any
augmentations and any index. |
Nonterminal |
Treebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Identical to Treebank.parseNonterminal(Symbol) , except that instead of
returning a newly-created Nonterminal object, this
method merely modifies the specified Nonterminal object. |
boolean |
BrokenSubcatBag.remove(Symbol requirement)
Removes the specified requirement from this subcat bag, if possible. |
boolean |
Subcat.remove(Symbol requirement)
Attempt to remove the specified symbol from the set of requirements in this subcat frame. |
boolean |
SubcatBag.remove(Symbol requirement)
Removes the specified requirement from this subcat bag, if possible. |
boolean |
SubcatList.remove(Symbol requirement)
Removes the specified requirement from this subcat list, if possible. |
Symbol |
Training.removeArgAugmentation(Symbol label)
Removes any argument augmentations from the specified nonterminal label. |
boolean |
Treebank.removeAugmentation(Nonterminal nonterminal,
Symbol augmentation)
Removes the specified augmentation from the augmentation list of the specified Nonterminal object, and the previous augmentation
delimiter. |
Sexp |
Treebank.removeAugmentation(Sexp sexp,
Nonterminal nonterminal,
Symbol augmentation)
Removes the specified nonterminal augmentation from the specified S-expression, using the specified Nonterminal object for temporary
storage. |
boolean |
Training.removeWord(Symbol word,
Symbol tag,
int idx,
SexpList sentence,
SexpList tags,
SexpList originalTags,
Set prunedPretermsPosSet,
Map prunedPretermsPosMap)
Invoked by the decoder as the first step in preprocessing (prior to the invocation of Training.preProcessTest(danbikel.lisp.SexpList, danbikel.lisp.SexpList, danbikel.lisp.SexpList) ). |
protected void |
Decoder.seedChart(Symbol word,
int wordIdx,
Symbol features,
boolean neverObserved,
SexpList tagSet,
boolean wordIsUnknown,
Symbol origWord,
ConstraintSet constraints)
Adds a chart item for every possible part of speech for the specified word at the specified index in the current sentence. |
protected void |
EMDecoder.seedChart(Symbol word,
int wordIdx,
Symbol features,
boolean neverObserved,
SexpList tagSet,
boolean wordIsUnknown,
Symbol origWord,
ConstraintSet constraints)
|
Word |
Word.set(Symbol word,
Symbol tag,
Symbol features)
Sets all three data members for this word. |
void |
CKYItem.set(Symbol label,
Word headWord,
Subcat leftSubcat,
Subcat rightSubcat,
CKYItem headChild,
SLNode leftChildren,
SLNode rightChildren,
SexpList leftPrevMods,
SexpList rightPrevMods,
int start,
int end,
boolean leftVerb,
boolean rightVerb,
boolean stop,
double logTreeProb,
double logPrior,
double logProb)
Sets all of the data members of this chart item. |
void |
EMItem.set(Symbol label,
Word headWord,
Subcat leftSubcat,
Subcat rightSubcat,
CKYItem headChild,
SLNode leftChildren,
SLNode rightChildren,
SexpList leftPrevMods,
SexpList rightPrevMods,
int start,
int end,
boolean leftVerb,
boolean rightVerb,
boolean stop,
double logTreeProb,
double logPrior,
double logProb)
This method simply throws an UnsupportedOperationException, as the log probabilities of the superclass are not used by this class. |
void |
EMItem.set(Symbol label,
Word headWord,
Subcat leftSubcat,
Subcat rightSubcat,
CKYItem headChild,
SLNode leftChildren,
SLNode rightChildren,
SexpList leftPrevMods,
SexpList rightPrevMods,
int start,
int end,
boolean leftVerb,
boolean rightVerb,
boolean stop,
int unaryLevel,
double insideProb)
Sets all the data for this EM chart item. |
void |
PriorEvent.set(Word headWord,
Symbol label)
Sets the head word and nonterminal label (all the data members) of this event. |
void |
Word.setFeatures(Symbol features)
Sets the features for this word. |
void |
HeadTreeNode.setOriginalHeadWord(Symbol originalHeadWord)
Sets the original version of the head word of this node, before any downcasing or other transformations were applied during training. |
void |
Word.setTag(Symbol tag)
Sets the part-of-speech tag for this word. |
void |
Word.setWord(Symbol word)
Sets the word itself of this Word object. |
Symbol |
Treebank.stripAllButIndex(Symbol label)
Returns a symbol identical to the specified label , except
all augmentations other than the index will be removed. |
Symbol |
Treebank.stripAllButIndex(Symbol label,
Nonterminal nonterminal)
Identical to Treebank.stripAllButIndex(Symbol) , except that instead of
creating a new Nonterminal object for use by
Treebank.parseNonterminal(Symbol,Nonterminal) , this method
uses the specified nonterminal object. |
Symbol |
Treebank.stripAugmentation(Symbol label)
Returns the Symbol created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
Treebank.augmentationDelimiters() . |
Symbol |
Treebank.stripIndex(Symbol label)
Returns label , but stripped of any index augmentation. |
Symbol |
Treebank.stripIndex(Symbol label,
Nonterminal nonterminal)
Identical to Treebank.stripIndex(Symbol) , except that instead of creating
a new Nonterminal object for use by Treebank.parseNonterminal(Symbol,Nonterminal) , this method simply passes the
specified nonterminal object. |
protected boolean |
BrokenSubcatBag.validRequirement(Symbol requirement)
A method to check if the specified requirement is valid. |
protected boolean |
SubcatBag.validRequirement(Symbol requirement)
A method to check if the specified requirement is valid. |
protected boolean |
SubcatList.validRequirement(Symbol requirement)
A method to check if the specified requirement is valid. |
static void |
SymbolicCollectionWriter.writeMap(Map map,
Symbol name,
Writer writer)
Writes out the contents of map in an S-expression format. |
static void |
SymbolicCollectionWriter.writeSet(Set set,
Symbol name,
Writer writer)
Writes out the contents of the specified set in an S-expression format. |
static void |
SymbolicCollectionWriter.writeSet(Set set,
Symbol name,
Writer writer,
String sep)
Writes out the contents of the specified set in an S-expression format. |
Constructors in danbikel.parser with parameters of type Symbol | |
---|---|
CKYItem(Symbol label,
Word headWord,
Subcat leftSubcat,
Subcat rightSubcat,
CKYItem headChild,
SLNode leftChildren,
SLNode rightChildren,
SexpList leftPrevMods,
SexpList rightPrevMods,
int start,
int end,
boolean leftVerb,
boolean rightVerb,
boolean stop,
double logTreeProb,
double logPrior,
double logProb)
Constructs a CKY chart item with the specified data. |
|
FileBackedTrainerEventMap(Symbol type,
File file)
Constructs a new file-backed TrainerEvent map for events of the
specified type and using the specified file. |
|
FileBackedTrainerEventMap(Symbol type,
String filename)
Constructs a new file-backed TrainerEvent map for events of the
specified type and using the specified file. |
|
GapEvent(Symbol direction,
Word headWord,
Symbol parent,
Symbol head)
Constructs a new GapEvent object, setting all its
data members to the specified values. |
|
HeadEvent(Word headWord,
Symbol parent,
Symbol head,
SexpList leftSubcat,
SexpList rightSubcat)
Constructs a new HeadEvent object, setting all its data
members to the specified values. |
|
HeadEvent(Word headWord,
Symbol parent,
Symbol head,
Subcat leftSubcat,
Subcat rightSubcat)
Constructs a new HeadEvent object, settings all its data
members to the specified values. |
|
ModifierEvent(Word modHeadWord,
Word headWord,
Symbol modifier,
SexpList previousMods,
WordList previousWords,
Symbol parent,
Symbol head,
SexpList subcat,
boolean verbIntervening,
boolean side)
Constructs a new ModifierEvent object, settings its
data members to the values specified. |
|
ModifierEvent(Word modHeadWord,
Word headWord,
Symbol modifier,
SexpList previousMods,
WordList previousWords,
Symbol parent,
Symbol head,
Subcat subcat,
boolean verbIntervening,
boolean side)
Constructs a new ModifierEvent object, settings its
data members to the values specified. |
|
ModifierEvent(Word modHeadWord,
Word headWord,
Symbol modifier,
SexpList previousMods,
WordList previousWords,
Symbol parent,
Symbol head,
Subcat subcat,
Word prevPunc,
Word prevConj,
boolean isConjPConj,
boolean verbIntervening,
boolean headAdjacent,
boolean side)
Constructs a new ModifierEvent object for use when
outputting training events in the format of Mike Collins’ parser,
settings its data members to the values specified. |
|
Nonterminal(Symbol base,
SexpList augmentations,
int index)
Sets the data members of this new object to the specified values |
|
PriorEvent(Word headWord,
Symbol label)
Constructs a new PriorEvent object, setting all its
data members to the specified values. |
|
SymbolPair(Symbol first,
Symbol second)
Constructs a new symbol pair from the specified symbols. |
|
Word(Symbol word,
Symbol tag)
Creates a new Word object with the specified word and part of speech. |
|
Word(Symbol word,
Symbol tag,
Symbol features)
Creates a new Word object with the specified word, part of speech and word-feature vector. |
Uses of Symbol in danbikel.parser.arabic |
---|
Fields in danbikel.parser.arabic declared as Symbol | |
---|---|
protected static Symbol |
Training.tagMapSym
The symbol associated with tag map metadata. |
Methods in danbikel.parser.arabic that return Symbol | |
---|---|
Symbol |
Treebank.baseNPLabel()
Returns the symbol with which AbstractTraining.addBaseNPs(Sexp) will
relabel base NPs. |
Symbol |
SimpleWordFeatures.defaultFeatureVector()
|
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
Treebank.NPLabel()
Returns the symbol that AbstractTraining.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
Treebank.sentenceLabel()
|
Symbol |
Training.startSym()
Returns the symbol to indicate hidden nonterminals that precede the first in a sequence of modifier nonterminals. |
Symbol |
Training.stopSym()
Returns the symbol to indicate a hidden nonterminal that follows the last in a sequence of modifier nonterminals. |
Symbol |
Treebank.subjectAugmentation()
|
Symbol |
Treebank.subjectlessSentenceLabel()
Returns the symbol that AbstractTraining.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects. |
Symbol |
Training.topSym()
Returns the symbol to indicate the hidden root of all parse trees. |
protected static Symbol |
TagMap.transformTag(Word word)
Helper method used by Training.transformTags(Sexp) . |
protected Symbol |
Training.transformTagOld(Word word)
Deprecated. This method is the old mechanism by which to transform the part-of-speech tag associated with an Arabic word; it has been superseded by the method TagMap.transformTag(Word) . |
Methods in danbikel.parser.arabic with parameters of type Symbol | |
---|---|
int |
HeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs -> rhs . |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
boolean |
Treebank.isComma(Symbol word)
|
boolean |
Treebank.isConjunction(Symbol label)
Returns true if label is equal to the symbol
whose print name is "CONJ" . |
boolean |
Treebank.isLeftParen(Symbol word)
|
boolean |
Treebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for the Arabic Treebank. |
boolean |
Treebank.isPunctuation(Symbol tag)
|
boolean |
Treebank.isRightParen(Symbol word)
|
boolean |
Treebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in the Penn Arabic Treebank, that is, if the canonical version of
label is equal to "S" . |
boolean |
Treebank.isVerbTag(Symbol tag)
|
boolean |
Treebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is a WHNP in the Arabic Treebank. |
Nonterminal |
Treebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Calls AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal) with
the specified arguments. |
protected void |
Training.readMetadataHook(Symbol dataType,
int metadataLen,
SexpList metadata)
Reads the tag map metadata if the specified data type is equal to Training.tagMapSym . |
Uses of Symbol in danbikel.parser.chinese |
---|
Methods in danbikel.parser.chinese that return Symbol | |
---|---|
Symbol |
Treebank.baseNPLabel()
Returns the symbol with which AbstractTraining.addBaseNPs(Sexp) will
relabel base NPs. |
Symbol |
SimpleWordFeatures.defaultFeatureVector()
Returns AbstractWordFeatures.unknownWordSym . |
Symbol |
WordFeatures.defaultFeatureVector()
|
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns the features of a word. |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
When the stripAugmentations argument is true, this method returns the same value as would be returned by Treebank.getCanonical(Symbol)
when passed the label argument; otherwise, the specified nonterminal
is canonicalized unless it contains augmentations, in which case
it is returned untouched. |
Symbol |
Treebank.NPLabel()
Returns the symbol that AbstractTraining.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
Treebank.sentenceLabel()
|
Symbol |
Treebank.subjectAugmentation()
|
Symbol |
Treebank.subjectlessSentenceLabel()
Returns the symbol that relabelSubjectlessSentences
will use for sentences that have no subjects. |
Methods in danbikel.parser.chinese with parameters of type Symbol | |
---|---|
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns the features of a word. |
int |
HeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs -> rhs . |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
When the stripAugmentations argument is true, this method returns the same value as would be returned by Treebank.getCanonical(Symbol)
when passed the label argument; otherwise, the specified nonterminal
is canonicalized unless it contains augmentations, in which case
it is returned untouched. |
boolean |
Treebank.isComma(Symbol word)
|
boolean |
Treebank.isConjunction(Symbol label)
Returns true if label is equal to the symbol
whose print name is "CC" . |
boolean |
Treebank.isLeftParen(Symbol word)
|
boolean |
Treebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for for Chinese Treebank. |
boolean |
Treebank.isPunctuation(Symbol tag)
|
boolean |
Treebank.isRightParen(Symbol word)
|
boolean |
Treebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label is equal to "S" . |
boolean |
Treebank.isVerbTag(Symbol tag)
|
boolean |
Treebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is a WHNP in the Chinese Treebank. |
Nonterminal |
Treebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Calls AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal) with
the specified arguments. |
Uses of Symbol in danbikel.parser.constraints |
---|
Fields in danbikel.parser.constraints declared as Symbol | |
---|---|
protected Symbol |
PartialTreeConstraint.label
The nonterminal label associated with this constraint. |
protected Symbol |
UnlexTreeConstraint.label
The nonterminal label associated with this constraint. |
Methods in danbikel.parser.constraints that return Symbol | |
---|---|
Symbol |
PartialTreeConstraint.label()
Returns the nonterminal label associated with this constraint. |
Symbol |
UnlexTreeConstraint.label()
Returns the nonterminal label associated with this constraint. |
Uses of Symbol in danbikel.parser.english |
---|
Methods in danbikel.parser.english that return Symbol | |
---|---|
Symbol |
BrokenTreebank.baseNPLabel()
Returns the symbol with which AbstractTraining.addBaseNPs(Sexp) will
relabel base NPs. |
Symbol |
Treebank.baseNPLabel()
Returns the symbol with which AbstractTraining.addBaseNPs(Sexp) will
relabel base NPs. |
Symbol |
SimpleWordFeatures.defaultFeatureVector()
|
Symbol |
WordFeatures.defaultFeatureVector()
|
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns the features of a word. |
Symbol |
BrokenTreebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
BrokenTreebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
BrokenTreebank.NPLabel()
Returns the symbol that AbstractTraining.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
Treebank.NPLabel()
Returns the symbol that AbstractTraining.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
BrokenTreebank.sentenceLabel()
|
Symbol |
Treebank.sentenceLabel()
|
Symbol |
BrokenTreebank.subjectAugmentation()
|
Symbol |
Treebank.subjectAugmentation()
|
Symbol |
BrokenTreebank.subjectlessSentenceLabel()
Returns the symbol that Training.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects. |
Symbol |
Treebank.subjectlessSentenceLabel()
Returns the symbol that Training.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects. |
Methods in danbikel.parser.english with parameters of type Symbol | |
---|---|
Symbol |
WordFeatures.features(Symbol word,
boolean firstWord)
Returns the features of a word. |
int |
BrokenHeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs -> rhs . |
int |
HeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs -> rhs . |
Symbol |
BrokenTreebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
Treebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
Symbol |
BrokenTreebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
Treebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
boolean |
Treebank.isBaseNP(Symbol label)
|
boolean |
BrokenTreebank.isComma(Symbol word)
|
boolean |
Treebank.isComma(Symbol word)
|
boolean |
BrokenTreebank.isConjunction(Symbol label)
Returns true if label is equal to the symbol
whose print name is "CC" . |
boolean |
Treebank.isConjunction(Symbol label)
Returns true if label is equal to the symbol
whose print name is "CC" . |
boolean |
BrokenTreebank.isLeftParen(Symbol word)
This method returns false under all circumstances, as though
we didn't know about Mike's hack for the comma-pruning rule that says that
commas that occur after left parens and before right parens (or the end
of the sentence) are not considered commas for the purposes of comma
pruning. |
boolean |
Treebank.isLeftParen(Symbol word)
|
boolean |
BrokenTreebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for for English Treebank. |
boolean |
Treebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for for English Treebank. |
boolean |
BrokenTreebank.isPunctuation(Symbol tag)
|
boolean |
Treebank.isPunctuation(Symbol tag)
|
boolean |
BrokenTreebank.isRightParen(Symbol word)
This method returns false under all circumstances, as though
we didn't know about Mike's hack for the comma-pruning rule that says that
commas that occur after left parens and before right parens (or the end
of the sentence) are not considered commas for the purposes of comma
pruning. |
boolean |
Treebank.isRightParen(Symbol word)
|
boolean |
BrokenTreebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label is equal to "S" . |
boolean |
Treebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label is equal to "S" . |
protected boolean |
BrokenTraining.isTypeOfSentence(Symbol label)
Unlike Mike's definition of a sentence for the purpose of relabeling subjectless sentences, which includes any label that starts with 'S', we strictly require here that the label strictly be S, or S with some augmentations. |
protected boolean |
Training.isTypeOfSentence(Symbol label)
|
boolean |
BrokenTreebank.isVerbTag(Symbol tag)
|
boolean |
Treebank.isVerbTag(Symbol tag)
|
boolean |
BrokenTreebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is a WHNP in the English Treebank. |
boolean |
Treebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is a WHNP in the English Treebank. |
Nonterminal |
BrokenTreebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Calls AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal) with
the specified arguments. |
Nonterminal |
Treebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Calls AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal) with
the specified arguments. |
boolean |
Training.removeWord(Symbol word,
Symbol tag,
int idx,
SexpList sentence,
SexpList tags,
SexpList originalTags,
Set prunedPretermsPosSet,
Map prunedPretermsPosMap)
|
Uses of Symbol in danbikel.parser.lang |
---|
Fields in danbikel.parser.lang declared as Symbol | |
---|---|
protected static Symbol |
AbstractTraining.argContextsSym
The symbol to indicate the list of argument-finding rules from a metadata resource. |
protected Symbol |
AbstractTraining.baseNP
The value of Treebank.baseNPLabel() , cached for efficiency and
convenience. |
protected Symbol |
AbstractTraining.canonicalAugDelimSym
A Symbol created from the first character of Treebank.augmentationDelimiters() . |
protected Symbol |
AbstractTreebank.canonicalAugDelimSym
A Symbol created from the first character of Treebank.augmentationDelimiters() . |
protected Symbol |
AbstractTraining.defaultArgAugmentation
The symbol that will be used to identify argument nonterminals. |
protected static Symbol |
AbstractHeadFinder.defaultSym
The wildcard character used in default head-finding instructions. |
protected Symbol |
AbstractTraining.gapAugmentation
The symbol that will be used to identify nonterminals whose subtrees contain a gap (a trace). |
protected static Symbol |
AbstractTraining.headPostSym
The symbol that is a possible mapping AbstractTraining.argContexts to indicate
to choose a child relative to the right side of the head as an argument. |
protected static Symbol |
AbstractTraining.headPreSym
The symbol that is a possible mapping AbstractTraining.argContexts to indicate
to choose a child relative to the left side of the head as an argument. |
protected static Symbol |
AbstractTraining.headSym
The symbol that is a possible mapping in AbstractTraining.argContexts to indicate
to choose a child relative to the head as an argument. |
protected static Symbol |
AbstractHeadFinder.leftSym
The character from a head table's head-finding instruction that indicates a left-to-right scan. |
protected static Symbol |
AbstractTraining.nodesToPruneSym
The symbol to indicate the list of nodes to prune. |
protected Symbol[] |
AbstractTreebank.nonterminalExceptionSet
A set of nonterminal labels ( Symbol objects) that
AbstractTreebank.defaultParseNonterminal(Symbol,Nonterminal) should use when
determining the base nonterminal label. |
protected Symbol |
AbstractTraining.NP
The value of Treebank.NPLabel() , cached for efficiency and
convenience. |
protected static Symbol |
AbstractHeadFinder.rightSym
The character from a head table's head-finding instruction that indicates a right-to-left scan. |
protected Symbol[] |
AbstractHeadFinder.HeadFindInstruction.scanSet
The set of symbols to scan for. |
protected static Symbol |
AbstractTraining.semTagArgStopListSym
The symbol to indicate the list of node augmentations that prevent a node from being relabeled |
protected Symbol |
AbstractTraining.traceTag
The symbol that gets assigned as the part of speech for null preterminals that represent traces that have undergone WH-movement, as relabeled by the default implementation of AbstractTraining.addGapInformation(Sexp) . |
protected static Symbol |
AbstractWordFeatures.unknownWordSym
The unique symbol to represent unknown words. |
Methods in danbikel.parser.lang that return Symbol | |
---|---|
abstract Symbol |
AbstractTreebank.baseNPLabel()
Returns the symbol with which Training.addBaseNPs(Sexp) will
relabel core NPs. |
Symbol |
AbstractTraining.defaultArgAugmentation()
The symbol that is used to mark argument (required) nonterminals by AbstractTraining.identifyArguments(Sexp) . |
abstract Symbol |
AbstractWordFeatures.defaultFeatureVector()
The symbol that represents the case where none of the features fires for a particular word. |
Symbol |
AbstractWordFeatures.features(Symbol word,
boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word. |
Symbol |
AbstractTraining.gapAugmentation()
The symbol that will be used to identify nonterminals whose subtrees contain a gap (a trace). |
abstract Symbol |
AbstractTreebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
abstract Symbol |
AbstractTreebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
AbstractTraining.getCanonicalArg(Symbol label)
Returns the canonical version of the specified argument nonterminal. |
Symbol |
AbstractTraining.getCanonicalArg(Symbol label,
Nonterminal nonterminal)
Returns the canonical version of the specified argument nonterminal. |
Symbol |
AbstractTreebank.getTag(Sexp preterminal)
Gets the component of the preterminal tree that corresponds to the part of speech tag. |
Symbol |
AbstractTraining.headPostSym()
The symbol that is a possible mapping AbstractTraining.argContexts to indicate to
choose a child relative to the right side of the head as an argument. |
Symbol |
AbstractTraining.headPreSym()
The symbol that is a possible mapping AbstractTraining.argContexts to indicate
to choose a child relative to the left side of the head as an argument. |
Symbol |
AbstractTraining.headSym()
Returns the symbol used in the AbstractTraining.argContexts map to identify
an offset from the head child. |
abstract Symbol |
AbstractTreebank.NPLabel()
Returns the symbol that Training.addBaseNPs(Sexp) should
add as a parent if a base NP is not dominated by an NP. |
Symbol |
AbstractTraining.removeArgAugmentation(Symbol label)
|
protected Symbol |
AbstractTraining.removeArgAugmentation(Symbol label,
Nonterminal nonterminal)
Parses label into the specified Nonterminal object and then
removes all argument augmentations. |
abstract Symbol |
AbstractTreebank.sentenceLabel()
Returns the canonical label for a sentence, for de-transforming sentences that were transformed via Training.relabelSubjectlessSentences(Sexp) . |
Symbol |
AbstractTraining.startSym()
Returns the symbol to indicate hidden nonterminals that precede the first in a sequence of modifier nonterminals. |
Symbol |
AbstractTraining.stopSym()
Returns the symbol to indicate a hidden nonterminal that follows the last in a sequence of modifier nonterminals. |
Symbol |
AbstractTreebank.stripAllButIndex(Symbol label)
Returns a symbol identical to the specified label , except
all augmentations other than the index will be removed. |
Symbol |
AbstractTreebank.stripAllButIndex(Symbol label,
Nonterminal nonterminal)
Identical to AbstractTreebank.stripAllButIndex(Symbol) , except that instead of
creating a new Nonterminal object for use by
AbstractTreebank.parseNonterminal(Symbol,Nonterminal) , this method
uses the specified nonterminal object. |
Symbol |
AbstractTreebank.stripAugmentation(Symbol label)
Returns the Symbol created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
AbstractTreebank.augmentationDelimiters() . |
protected Symbol |
AbstractTraining.stripAugmentations(Symbol label)
Parses the specified nonterminal label and removes all augmentations. |
Symbol |
AbstractTreebank.stripIndex(Symbol label)
Returns label , but stripped of any index augmentation. |
Symbol |
AbstractTreebank.stripIndex(Symbol label,
Nonterminal nonterminal)
Identical to AbstractTreebank.stripIndex(Symbol) , except that instead of creating
a new Nonterminal object for use by AbstractTreebank.parseNonterminal(Symbol,Nonterminal) , this method simply passes the
specified nonterminal object. |
abstract Symbol |
AbstractTreebank.subjectAugmentation()
Returns the symbol that is used to augment nonterminals to indicate matrix subjects in this language’s Treebank. |
abstract Symbol |
AbstractTreebank.subjectlessSentenceLabel()
Returns the symbol with which Training.relabelSubjectlessSentences(Sexp)
will relabel sentences when they have no subjects. |
Symbol |
AbstractTraining.topSym()
Returns the symbol to indicate the hidden root of all parse trees. |
Symbol |
AbstractTraining.traceTag()
The symbol that gets reassigned as the part of speech for null preterminals that represent traces that have undergone WH-movement, as relabeled by the default implementation of AbstractTraining.addGapInformation(Sexp) . |
Methods in danbikel.parser.lang with parameters of type Symbol | |
---|---|
protected boolean |
AbstractTraining.addArgAugmentation(Symbol label,
Nonterminal nonterminal)
Adds the default argument augmentation to the specified nonterminal if the specified label is not already an argument. |
void |
AbstractTreebank.addAugmentation(Nonterminal nonterminal,
Symbol augmentation)
Adds the specified augmentation to the end of the (possibly empty) augmentation list of the specified Nonterminal object. |
boolean |
AbstractTreebank.containsAugmentation(Symbol nonterminal,
Symbol augmentation)
Provides an efficient, thread-safe method for testing whether the specified nonterminal contains the specified augmentation (without parsing the nonterminal). |
protected int |
AbstractHeadFinder.defaultFindHead(Symbol lhs,
SexpList rhs)
Provides a default mechanism to use the head table to find a head in the specified grammar production. |
void |
AbstractTreebank.defaultParseNonterminal(Symbol label,
Nonterminal nonterminal)
Fills in the specified Nonterminal object to represent
all the components of a complex nonterminal annotation: the base label,
any augmentations and any index. |
Symbol |
AbstractWordFeatures.features(Symbol word,
boolean firstWord)
Returns a symbol representing the orthographic and/or morphological features of the specified word. |
abstract int |
AbstractHeadFinder.findHead(Sexp tree,
Symbol lhs,
SexpList rhs)
Finds the head for the grammar production lhs -> rhs . |
abstract Symbol |
AbstractTreebank.getCanonical(Symbol label)
Returns a canonical mapping for the specified nonterminal label; if label already is in canonical form, it is returned. |
abstract Symbol |
AbstractTreebank.getCanonical(Symbol label,
boolean stripAugmentations)
|
Symbol |
AbstractTraining.getCanonicalArg(Symbol label)
Returns the canonical version of the specified argument nonterminal. |
Symbol |
AbstractTraining.getCanonicalArg(Symbol label,
Nonterminal nonterminal)
Returns the canonical version of the specified argument nonterminal. |
boolean |
AbstractTraining.hasGap(Symbol label)
Returns true if and only if label has a
gap augmentation as added by AbstractTraining.addGapInformation(Sexp) . |
boolean |
AbstractTraining.isArgument(Symbol label)
Returns true if and only if label has an
argument augmentation as added by AbstractTraining.identifyArguments(Sexp) . |
protected boolean |
AbstractTraining.isArgument(Symbol label,
Nonterminal nonterminal)
Returns true if the specified nonterminal label has an
argument augmentation. |
protected boolean |
AbstractTraining.isArgument(Symbol label,
Nonterminal nonterminal,
boolean parseLabel)
Returns true if the specified nonterminal label has an
argument augmentation. |
boolean |
AbstractTraining.isArgumentFast(Symbol label)
Returns true if the specified nonterminal label has an
argument augmentation. |
boolean |
AbstractTreebank.isBaseNP(Symbol label)
Returns whether the specified label is for a base NP. |
abstract boolean |
AbstractTreebank.isComma(Symbol word)
Returns true if the specified word is a comma. |
abstract boolean |
AbstractTreebank.isConjunction(Symbol label)
Returns true if the canonical version of the specified label
is a conjunction tag or nonterminal in a particular Treebank. |
abstract boolean |
AbstractTreebank.isLeftParen(Symbol word)
Returns true if the specified word is a left
parenthesis. |
abstract boolean |
AbstractTreebank.isNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP for this language’s Treebank. |
abstract boolean |
AbstractTreebank.isPunctuation(Symbol tag)
Returns true if the specified part of speech tag is one
for which AbstractTreebank.isPuncToRaise(Sexp) would return true . |
abstract boolean |
AbstractTreebank.isRightParen(Symbol word)
Returns true if the specified word is a right
parenthesis. |
abstract boolean |
AbstractTreebank.isSentence(Symbol label)
Returns true is the specified nonterminal label represents a
sentence in this language’s Treebank. |
protected boolean |
AbstractTraining.isTypeOfSentence(Symbol label)
A helper method used by AbstractTraining.repairBaseNPs(Sexp,int,Sexp) . |
abstract boolean |
AbstractTreebank.isVerbTag(Symbol tag)
Returns true if the specified symbol is the part of speech
tag of a verb. |
abstract boolean |
AbstractTreebank.isWHNP(Symbol label)
Returns true if the canonical version of the specified label
is an NP that undergoes WH-movement in a particular Treebank. |
Nonterminal |
AbstractTreebank.parseNonterminal(Symbol label)
Returns a Nonterminal object to represent all the
components of a complex nonterminal annotation: the base label, any
augmentations and any index. |
abstract Nonterminal |
AbstractTreebank.parseNonterminal(Symbol label,
Nonterminal nonterminal)
Identical to AbstractTreebank.parseNonterminal(Symbol) , except that instead of
returning a newly-created Nonterminal object, this
method merely modifies the specified Nonterminal object. |
protected void |
AbstractTraining.readMetadataHook(Symbol dataType,
int metadataLen,
SexpList metadata)
A hook for subclasses to have their own custom metadata types. |
Symbol |
AbstractTraining.removeArgAugmentation(Symbol label)
|
protected Symbol |
AbstractTraining.removeArgAugmentation(Symbol label,
Nonterminal nonterminal)
Parses label into the specified Nonterminal object and then
removes all argument augmentations. |
boolean |
AbstractTreebank.removeAugmentation(Nonterminal nonterminal,
Symbol augmentation)
Removes the specified augmentation from the augmentation list of the specified Nonterminal object, and the previous augmentation
delimiter. |
Sexp |
AbstractTreebank.removeAugmentation(Sexp sexp,
Nonterminal nonterminal,
Symbol augmentation)
|
boolean |
AbstractTraining.removeWord(Symbol word,
Symbol tag,
int idx,
SexpList sentence,
SexpList tags,
SexpList originalTags,
Set prunedPretermsPosSet,
Map prunedPretermsPosMap)
|
protected int |
AbstractHeadFinder.scan(boolean direction,
SexpList rhs,
Symbol[] matchTags)
Scans the RHS of a production in the specified direction. |
protected int |
AbstractHeadFinder.scanLeftToRight(SexpList rhs,
Symbol[] matchTags)
Scans the RHS of a production from left to right, returning the index of the first nonterminal that is in the matchTags array. |
protected int |
AbstractHeadFinder.scanRightToLeft(SexpList rhs,
Symbol[] matchTags)
Scans the RHS of a production from right to left, returning the index of the first nonterminal that is in the matchTags array. |
Symbol |
AbstractTreebank.stripAllButIndex(Symbol label)
Returns a symbol identical to the specified label , except
all augmentations other than the index will be removed. |
Symbol |
AbstractTreebank.stripAllButIndex(Symbol label,
Nonterminal nonterminal)
Identical to AbstractTreebank.stripAllButIndex(Symbol) , except that instead of
creating a new Nonterminal object for use by
AbstractTreebank.parseNonterminal(Symbol,Nonterminal) , this method
uses the specified nonterminal object. |
Symbol |
AbstractTreebank.stripAugmentation(Symbol label)
Returns the Symbol created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
AbstractTreebank.augmentationDelimiters() . |
protected Symbol |
AbstractTraining.stripAugmentations(Symbol label)
Parses the specified nonterminal label and removes all augmentations. |
protected void |
AbstractTraining.stripAugmentations(Symbol label,
Nonterminal nonterminal,
boolean parseLabel)
Fills in the specified Nonterminal object with the specified
nonterminal label but without any augmentations. |
Symbol |
AbstractTreebank.stripIndex(Symbol label)
Returns label , but stripped of any index augmentation. |
Symbol |
AbstractTreebank.stripIndex(Symbol label,
Nonterminal nonterminal)
Identical to AbstractTreebank.stripIndex(Symbol) , except that instead of creating
a new Nonterminal object for use by AbstractTreebank.parseNonterminal(Symbol,Nonterminal) , this method simply passes the
specified nonterminal object. |
protected boolean |
AbstractHeadFinder.tagMatches(Symbol tag,
Symbol[] matchTags)
A helper method that returns true if any of the nonterminals
in matchTags is tag and returns
false otherwise. |
protected boolean |
AbstractHeadFinder.tagMatches(Symbol tag,
Symbol[] matchTags)
A helper method that returns true if any of the nonterminals
in matchTags is tag and returns
false otherwise. |
Constructors in danbikel.parser.lang with parameters of type Symbol | |
---|---|
AbstractHeadFinder.HeadFindInstruction(boolean direction,
Symbol[] scanSet)
Constructs a new HeadFindInstruction object. |
Uses of Symbol in danbikel.parser.util |
---|
Fields in danbikel.parser.util declared as Symbol | |
---|---|
static Symbol |
TrainerEventToCollins.miscArg
|
static Symbol |
TrainerEventToCollins.npArg
|
static Symbol |
TrainerEventToCollins.sArg
|
static Symbol |
TrainerEventToCollins.sbarArg
|
static Symbol |
TrainerEventToCollins.startSym
|
static Symbol |
TrainerEventToCollins.stopSym
|
static Symbol |
TrainerEventToCollins.topSym
|
static Symbol |
TrainerEventToCollins.vpArg
|
Methods in danbikel.parser.util with parameters of type Symbol | |
---|---|
static void |
DebugChart.printBestDerivationStats(String prefix,
Chart chart,
int sentLen,
Symbol topSym,
double nonTopHighestLogProb,
CKYItem bestDerivationItem)
|
|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |