Documentation of 'cc.mallet.util.Replacement' Java class
Replacement
cc.mallet.util

Class Replacement

  • All Implemented Interfaces:
    java.io.Serializable


    public class Replacement
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Replacement(java.lang.String line)
      if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores.
      Replacement(java.lang.String source, java.lang.String target)
      A version that specifies a target, which may be an empty string
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int apply(java.lang.String[] input, int startPosition, java.lang.StringBuilder output) 
      java.lang.String getFirstToken() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Replacement

        public Replacement(java.lang.String line)
        if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores. if the input is a single field, the target is the input with all whitespace replace by underscores.
      • Replacement

        public Replacement(java.lang.String source,
                           java.lang.String target)
        A version that specifies a target, which may be an empty string
    • Method Detail

      • apply

        public int apply(java.lang.String[] input,
                         int startPosition,
                         java.lang.StringBuilder output)
      • getFirstToken

        public java.lang.String getFirstToken()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.