- size
Returns the number of features currently stored in #lexicon.
- lookupKey
Does a reverse lexicon lookup and returns the Featureassociated with the given
integer key, and nul
- getCutoff
Returns the value of #pruneCutoff, or #size() if #pruneCutoff is -1.
- lookup
Looks up the given feature in the lexicon, possibly counting it and/or
expanding the lexicon to acc
- <init>
Creates an empty lexicon with the given encoding.
- clear
Clears the data structures associated with this instance.
- clone
Returns a deep clone of this lexicon implemented as a HashMap.
- contains
Returns true if the given feature is already in the lexicon (whether it's past
the #pruneCutoff or
- discardPrunedFeatures
Discard features at the provided indices. This operation is performed last to
first so we can do it
- getChildFeature
Used to lookup the children of conjunctive and referring features during
training, this method check
- getCountPolicy
Returns the feature counting policy currently employed by this lexicon.
- getMap
Simply returns the map stored in #lexicon.