Package weka.core.stemmers
Class LovinsStemmer
java.lang.Object
weka.core.stemmers.LovinsStemmer
- All Implemented Interfaces:
Serializable
,RevisionHandler
,Stemmer
,TechnicalInformationHandler
- Direct Known Subclasses:
IteratedLovinsStemmer
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:
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} }
- Version:
- $Revision: 8034 $
- Author:
- Eibe Frank (eibe at cs dot waikato dot ac dot nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the revision string.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.Returns a string describing the stemmerstatic void
Runs the stemmer with the given optionsReturns the stemmed version of the given word.stemString
(String str) Stems everything in the given string.toString()
returns a string representation of the stemmer
-
Constructor Details
-
LovinsStemmer
public LovinsStemmer()
-
-
Method Details
-
globalInfo
Returns a string describing the stemmer- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
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.- Specified by:
getTechnicalInformation
in interfaceTechnicalInformationHandler
- Returns:
- the technical information about this class
-
stem
Returns the stemmed version of the given word. Word is converted to lower case before stemming. -
stemString
Stems everything in the given string. String is converted to lower case before stemming.- Parameters:
str
- the string to stem- Returns:
- the processed string
-
toString
returns a string representation of the stemmer -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
main
Runs the stemmer with the given options- Parameters:
args
- the options
-