|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use FlexibleMap | |
---|---|
danbikel.parser | Provides the core framework of this extensible statistical parsing engine. |
danbikel.util | Provides some basic utility classes. |
Uses of FlexibleMap in danbikel.parser |
---|
Classes in danbikel.parser that implement FlexibleMap | |
---|---|
class |
BiCountsTable<K>
Provides a mapping between objects and two floating-point (double) values that may be incremented or decremented. |
class |
CountsTableImpl<K>
Provides a mapping between objects and floating-point (double) counts that may be incremented or decremented. |
class |
ProbabilityCache<K>
A cache for storing arbitrary objects with their probabilities. |
Fields in danbikel.parser declared as FlexibleMap | |
---|---|
protected FlexibleMap |
Model.canonicalEvents
A reflexive map of canonical Event objects to save memory
in the various tables of this model that store such Event
objects. |
protected FlexibleMap |
ModelCollection.canonicalEvents
The reflexive map used to canonicalize objects created when deriving counts for all models in this model collection. |
Methods in danbikel.parser that return FlexibleMap | |
---|---|
FlexibleMap |
ModelCollection.canonicalEvents()
Returns the reflexive map used to canonicalize objects created when deriving counts for all models in this model collection. |
Methods in danbikel.parser with parameters of type FlexibleMap | |
---|---|
void |
JointModel.canonicalize(FlexibleMap map)
Canonicalizes the objects of this Model , as well as all
internal Model instances. |
void |
Model.canonicalize(FlexibleMap map)
Since events are typically read-only, this method will allow for canonicalization (or "unique-ifying") of the information contained in the events contained in this object using the specified map. |
protected static Event |
Model.canonicalizeEvent(Event event,
FlexibleMap canonical)
This method first canonicalizes the information in the specified event (a Sexp or a Subcat and a Sexp), then it returns a canonical version of the event itself, copying it into the map if necessary. |
void |
Trainer.deriveCounts(boolean setModelCollection,
FlexibleMap canonical)
Derives event counts for all back-off levels of all sub-models for the current parsing model. |
void |
JointModel.deriveCounts(CountsTable trainerCounts,
Filter filter,
double threshold,
FlexibleMap canonical)
Derives counts for this Model , as well as for all
internal Model instances. |
void |
Model.deriveCounts(CountsTable trainerCounts,
Filter filter,
double threshold,
FlexibleMap canonical)
Derives all counts from the specified counts table, using the probability structure specified in the constructor. |
void |
InterpolatedKnesserNeyModel.deriveCounts(CountsTable trainerCounts,
Filter filter,
double threshold,
FlexibleMap canonical,
boolean deriveOtherModelCounts)
|
void |
JointModel.deriveCounts(CountsTable trainerCounts,
Filter filter,
double threshold,
FlexibleMap canonical,
boolean deriveOtherModelCounts)
Derives counts for this Model and optionally for
all internal Model instances. |
void |
Model.deriveCounts(CountsTable trainerCounts,
Filter filter,
double threshold,
FlexibleMap canonical,
boolean deriveOtherModelCounts)
Derives all counts from the specified counts table, using the probability structure specified in the constructor. |
protected void |
Trainer.deriveCounts(double derivedCountThreshold,
FlexibleMap canonical)
Derives all counts for creating a ModelCollection object. |
protected void |
Model.deriveHistories(CountsTable trainerCounts,
Filter filter,
FlexibleMap canonical)
Deprecated. This method used to be called by Model.deriveCounts(CountsTable,Filter,double,FlexibleMap,boolean) , but
histories are now derived directly by that method. |
protected void |
Trainer.deriveModelCounts(double derivedCountThreshold,
FlexibleMap canonical)
A helper method used by Trainer.deriveCounts(double,FlexibleMap) to derive
counts for all Model instances contained within a ModelCollection . |
protected static Transition |
Model.getCanonical(Transition trans,
FlexibleMap canonical)
This method assumes trans already contains a canonical history and a canonical future. |
protected void |
Trainer.modelCollectionSet(FlexibleMap canonical)
Sets all the data members of the Trainer.modelCollection member of this
trainer with the internal resources constructed by this trainer (such as
all the Model instances). |
void |
ModelCollection.set(Model lexPriorModel,
Model nonterminalPriorModel,
Model topNonterminalModel,
Model topLexModel,
Model headModel,
Model gapModel,
Model leftSubcatModel,
Model rightSubcatModel,
Model modNonterminalModel,
Model modWordModel,
CountsTable vocabCounter,
CountsTable wordFeatureCounter,
CountsTable nonterminals,
Map posMap,
Map headToParentMap,
Map leftSubcatMap,
Map rightSubcatMap,
Map modNonterminalMap,
Map simpleModNonterminalMap,
Set prunedPreterms,
Set prunedPunctuation,
FlexibleMap canonicalEvents)
Sets all the data members of this object. |
void |
JointModel.setCanonicalEvents(FlexibleMap canonical)
Sets the Model.canonicalEvents member of this object to be the
specified FlexibleMap , as well as setting the same member
of all internal Model objects. |
void |
Model.setCanonicalEvents(FlexibleMap canonical)
Sets the Model.canonicalEvents member of this object. |
Uses of FlexibleMap in danbikel.util |
---|
Classes in danbikel.util that implement FlexibleMap | |
---|---|
class |
HashMap<K,V>
Home-grown implementation of a hash map, in order to support the FlexibleMap interface. |
class |
HashMapDouble<K>
A map from arbitrary keys to double values. |
class |
HashMapInt<K>
A map from arbitrary keys to int values. |
class |
HashMapPrimitive<K>
A home-grown hash map from objects to indexed sequences of primitives. |
class |
HashMapTwoDoubles<K>
A map for storing arbitrary Object instances as keys with ordered
pairs of double s as values. |
class |
HashMapTwoInts<K>
A map for storing arbitrary Object instances as keys with ordered
pairs of int s as values. |
|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |