Class TokenWeight

  • All Implemented Interfaces:
    cc.mallet.types.AlphabetCarrying, Serializable

    public class TokenWeight
    extends cc.mallet.pipe.Pipe
    This class is used by the CRFTagger as the base for the feature set.
    Author:
    Bob
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      cc.mallet.types.Instance pipe​(cc.mallet.types.Instance carrier)  
      void setTokenWeights​(Map<String,​Double> tokenWeights)  
      • Methods inherited from class cc.mallet.pipe.Pipe

        alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, preceedingPipeDataAlphabetNotification, preceedingPipeTargetAlphabetNotification, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
    • Constructor Detail

    • Method Detail

      • setTokenWeights

        public void setTokenWeights​(Map<String,​Double> tokenWeights)
      • pipe

        public cc.mallet.types.Instance pipe​(cc.mallet.types.Instance carrier)
        Overrides:
        pipe in class cc.mallet.pipe.Pipe