weka.core.stemmers
Class NullStemmer
- java.lang.Object
-
- weka.core.stemmers.NullStemmer
-
- All Implemented Interfaces:
- java.io.Serializable, RevisionHandler, Stemmer
public class NullStemmer extends java.lang.Object implements Stemmer
A dummy stemmer that performs no stemming at all.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NullStemmer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetRevision()Returns the revision string.java.lang.StringglobalInfo()Returns a string describing the stemmerstatic voidmain(java.lang.String[] args)Runs the stemmer with the given optionsjava.lang.Stringstem(java.lang.String word)Returns the word as it is.java.lang.StringtoString()returns a string representation of the stemmer
-
-
-
Method Detail
-
globalInfo
public java.lang.String globalInfo()
Returns a string describing the stemmer- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
stem
public java.lang.String stem(java.lang.String word)
Returns the word as it is.
-
toString
public java.lang.String toString()
returns a string representation of the stemmer- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the stemmer
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
main
public static void main(java.lang.String[] args)
Runs the stemmer with the given options- Parameters:
args- the options
-
-
DataMelt 3.0 © DataMelt by jWork.ORG