类 LovinsStemmer

java.lang.Object
weka.core.stemmers.LovinsStemmer
所有已实现的接口:
Serializable, RevisionHandler, Stemmer, TechnicalInformationHandler
直接已知子类:
IteratedLovinsStemmer

public class LovinsStemmer extends Object implements Stemmer, TechnicalInformationHandler
A stemmer based on the Lovins stemmer, described here:

Julie Beth Lovins (1968). Development of a stemming algorithm. Mechanical Translation and Computational Linguistics. 11:22-31.

BibTeX:

 @article{Lovins1968,
    author = {Julie Beth Lovins},
    journal = {Mechanical Translation and Computational Linguistics},
    pages = {22-31},
    title = {Development of a stemming algorithm},
    volume = {11},
    year = {1968}
 }
 

版本:
$Revision: 1.7 $
作者:
Eibe Frank (eibe at cs dot waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • LovinsStemmer

      public LovinsStemmer()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing the stemmer
      返回:
      a description suitable for displaying in the explorer/experimenter gui
    • getTechnicalInformation

      public TechnicalInformation getTechnicalInformation()
      Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
      指定者:
      getTechnicalInformation 在接口中 TechnicalInformationHandler
      返回:
      the technical information about this class
    • stem

      public String stem(String word)
      Returns the stemmed version of the given word. Word is converted to lower case before stemming.
      指定者:
      stem 在接口中 Stemmer
      参数:
      word - a string consisting of a single word
      返回:
      the stemmed word
    • stemString

      public String stemString(String str)
      Stems everything in the given string. String is converted to lower case before stemming.
      参数:
      str - the string to stem
      返回:
      the processed string
    • toString

      public String toString()
      returns a string representation of the stemmer
      覆盖:
      toString 在类中 Object
      返回:
      a string representation of the stemmer
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] args)
      Runs the stemmer with the given options
      参数:
      args - the options