Adds a string to the lexicon without adding it twice if it already exists
Fetches the string with the given index from the lexicon This deliberately does NOT check for bounds for fast access.
Fetches the string with the given index from the lexicon This deliberately does NOT check for bounds for fast access. Use exists() if you want to make sure that your index exists.
Index of the string in the lexicon
The string corresponding to the index
Maps feature indices from their old value to the new values given in the map If an existing feature does not appear in the map, it is simply not included in the new lexicon (this is to support feature selection)
Maps feature indices from their old value to the new values given in the map If an existing feature does not appear in the map, it is simply not included in the new lexicon (this is to support feature selection)
Map from old index to new index
Removes a member from the lexicon and returns its (former) index, or -1 if it was not found in the lexicon
Generic lexicon: maps objects of type T to Ints, both ways User: mihais Date: 3/1/13