public abstract class AbstractPostTokenizer extends IsCloseableObject implements PostTokenizer, UsesLogger
This post tokenizer leaves the token unchanged.
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger used for output.
|
Constructor and Description |
---|
AbstractPostTokenizer()
Create a postTokenizer.
|
Modifier and Type | Method and Description |
---|---|
Logger |
getLogger()
Get the logger.
|
java.lang.String[] |
postTokenize(java.lang.String token)
Process a token after tokenization.
|
void |
setLogger(Logger logger)
Set the logger.
|
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected Logger logger
public java.lang.String[] postTokenize(java.lang.String token)
postTokenize
in interface PostTokenizer
token
- The token to process after tokenization.The minimally processed token is typically results in an original spelling.
The maximally processed token typically results in a partially or completely standardized spelling.
These may be identical.
public Logger getLogger()
getLogger
in interface UsesLogger
public void setLogger(Logger logger)
setLogger
in interface UsesLogger
logger
- The logger.