Documentation of 'cc.mallet.pipe.TargetRememberLastLabel' Java class
TargetRememberLastLabel
cc.mallet.pipe

Class TargetRememberLastLabel

  • All Implemented Interfaces:
    AlphabetCarrying, java.io.Serializable


    public class TargetRememberLastLabel
    extends Pipe
    For each position in the target, remember the last non-background label. Assumes that the target of piped instances is a LabelSequence. Replaces the target with a LabelsSequence where row 0 is the original labels, and row 1 is the last label.
    See Also:
    Serialized Form
    • Constructor Detail

      • TargetRememberLastLabel

        public TargetRememberLastLabel()
      • TargetRememberLastLabel

        public TargetRememberLastLabel(java.lang.String backgroundLabel,
                                       boolean offset)
        offset determines how the memory and base sequences will be aligned. If true, they'll be aligned like this:
          MEM   O  O  S  S  S  E  L
          BASE  O  S  S  O  E  L  O
         
        otherwise, they'll be aligned like this:
          MEM   O  S  S  S  E  E  L
          BASE  O  S  S  O  E  L  O
         
    • Method Detail

      • pipe

        public Instance pipe(Instance carrier)
        Description copied from class: Pipe
        Really this should be 'protected', but isn't for historical reasons.
        Overrides:
        pipe in class Pipe

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.