net.java.sen.filter.reading
Class NumberFilter

java.lang.Object
  extended by 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


Constructor Summary
NumberFilter()
           
 
Method Summary
 void filterReadings(List<Token> tokens, ReadingNode readingNode)
          Filters readings
 void reset()
          Resets any sentence specific state held by the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFilter

public NumberFilter()
Method Detail

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 applied
readingNode - 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.