类 AlphabeticTokenizer

java.lang.Object
weka.core.tokenizers.Tokenizer
weka.core.tokenizers.AlphabeticTokenizer
所有已实现的接口:
Serializable, Enumeration, OptionHandler, RevisionHandler

public class AlphabeticTokenizer extends Tokenizer
Alphabetic string tokenizer, tokens are to be formed only from contiguous alphabetic sequences.

版本:
$Revision: 1.2 $
作者:
Asrhaf M. Kibriya (amk14@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • AlphabeticTokenizer

      public AlphabeticTokenizer()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing the stemmer
      指定者:
      globalInfo 在类中 Tokenizer
      返回:
      a description suitable for displaying in the explorer/experimenter gui
    • hasMoreElements

      public boolean hasMoreElements()
      returns whether there are more elements still
      指定者:
      hasMoreElements 在接口中 Enumeration
      指定者:
      hasMoreElements 在类中 Tokenizer
      返回:
      true if there are still more elements
    • nextElement

      public Object nextElement()
      returns the next element
      指定者:
      nextElement 在接口中 Enumeration
      指定者:
      nextElement 在类中 Tokenizer
      返回:
      the next element
    • tokenize

      public void tokenize(String s)
      Sets the string to tokenize. Tokenization happens immediately.
      指定者:
      tokenize 在类中 Tokenizer
      参数:
      s - the string to tokenize
    • getRevision

      public String getRevision()
      Returns the revision string.
      返回:
      the revision
    • main

      public static void main(String[] args)
      Runs the tokenizer with the given options and strings to tokenize. The tokens are printed to stdout.
      参数:
      args - the commandline options and strings to tokenize