Documentation of 'cc.mallet.types.LabelAlphabet' Java class
LabelAlphabet
cc.mallet.types

Class LabelAlphabet

  • All Implemented Interfaces:
    java.io.Serializable


    public class LabelAlphabet
    extends Alphabet
    implements java.io.Serializable
    A mapping from arbitrary objects (usually String's) to integers (and corresponding Label objects) and back.
    See Also:
    Serialized Form
    • Constructor Detail

      • LabelAlphabet

        public LabelAlphabet()
    • Method Detail

      • lookupIndex

        public int lookupIndex(java.lang.Object entry,
                               boolean addIfNotPresent)
        Description copied from class: Alphabet
        Return -1 if entry isn't present.
        Overrides:
        lookupIndex in class Alphabet
      • lookupLabel

        public Label lookupLabel(java.lang.Object entry,
                                 boolean addIfNotPresent)
      • lookupLabel

        public Label lookupLabel(java.lang.Object entry)
      • lookupLabel

        public Label lookupLabel(int labelIndex)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.