Package weka.core.tokenizers.cleaners
Class PassThrough
- java.lang.Object
-
- weka.core.tokenizers.cleaners.AbstractTokenCleaner
-
- weka.core.tokenizers.cleaners.PassThrough
-
- All Implemented Interfaces:
Serializable
,weka.core.OptionHandler
,TokenCleaner
public class PassThrough extends AbstractTokenCleaner
Dummy, never removes a token.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PassThrough()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
clean(String token)
Passes tokens through.String
globalInfo()
Returns a string describing the cleaner.-
Methods inherited from class weka.core.tokenizers.cleaners.AbstractTokenCleaner
getOptions, listOptions, reset, setOptions
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the cleaner.- Specified by:
globalInfo
in classAbstractTokenCleaner
- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
clean
public String clean(String token)
Passes tokens through.- Specified by:
clean
in interfaceTokenCleaner
- Specified by:
clean
in classAbstractTokenCleaner
- Parameters:
token
- the token to check- Returns:
- the clean token or null to ignore
-
-