Package weka.core.tokenizers.cleaners
Class NormalizeTwitterUsers
- java.lang.Object
-
- weka.core.tokenizers.cleaners.AbstractTokenCleaner
-
- weka.core.tokenizers.cleaners.NormalizeTwitterUsers
-
- All Implemented Interfaces:
Serializable
,weka.core.OptionHandler
,weka.core.tokenizers.cleaners.TokenCleaner
public class NormalizeTwitterUsers extends weka.core.tokenizers.cleaners.AbstractTokenCleaner
Replaces all users with the same dummy user.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NormalizeTwitterUsers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
clean(String token)
Determines whether a token is clean or not.String
globalInfo()
Returns a string describing the cleaner.
-
-
-
Field Detail
-
USER
public static final String USER
the user to replace all users with.- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the cleaner.- Specified by:
globalInfo
in classweka.core.tokenizers.cleaners.AbstractTokenCleaner
- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
clean
public String clean(String token)
Determines whether a token is clean or not.- Specified by:
clean
in interfaceweka.core.tokenizers.cleaners.TokenCleaner
- Specified by:
clean
in classweka.core.tokenizers.cleaners.AbstractTokenCleaner
- Parameters:
token
- the token to check- Returns:
- the clean token or null to ignore
-
-