net.java.sen.filter.reading
Class NumberFilter
java.lang.Object
net.java.sen.filter.reading.NumberFilter
- All Implemented Interfaces:
- ReadingFilter
public class NumberFilter
- extends Object
- implements ReadingFilter
A ReadingFilter that adapts the basic dictionary-based reading output to
account for the reading behaviour of number kanji and numeric suffixes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberFilter
public NumberFilter()
filterReadings
public void filterReadings(List<Token> tokens,
ReadingNode readingNode)
- Description copied from interface:
ReadingFilter
- Filters readings
- Specified by:
filterReadings in interface ReadingFilter
- Parameters:
tokens - The tokens to which the readings are appliedreadingNode - The head of a list of ReadingNodes
reset
public void reset()
- Description copied from interface:
ReadingFilter
- Resets any sentence specific state held by the filter. The implementing
filter decides exactly what state is affected, and may choose, for
instance, to exclude state relating to global or persistant settings
- Specified by:
reset in interface ReadingFilter
Copyright © 2012. All Rights Reserved.