kr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.MorphAnalyzer.ChartMorphAnalyzer
Class NumberDic

java.lang.Object
  extended by kr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.MorphAnalyzer.ChartMorphAnalyzer.NumberDic

public class NumberDic
extends java.lang.Object

Number dictionary for recognizing number expressions using automata.

Author:
Sangwon Park (hudoni@world.kaist.ac.kr), CILab, SWRC, KAIST

Field Summary
private  byte[][] num_automata
          number automata
 
Constructor Summary
NumberDic()
           
 
Method Summary
 boolean isNum(int idx)
          Returns whether the input was recognized as a number.
 int node_look(int c, int nidx)
          It searches the number dictionary with the specified character and the current state of the automata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num_automata

private byte[][] num_automata
number automata

Constructor Detail

NumberDic

public NumberDic()
Method Detail

isNum

public boolean isNum(int idx)
Returns whether the input was recognized as a number.

Parameters:
idx - - current state to check
Returns:
true: the input sequence was recognized as a number, false: not a number

node_look

public int node_look(int c,
                     int nidx)
It searches the number dictionary with the specified character and the current state of the automata.

Parameters:
c - - the next character for searching
nidx - - the current state of the automata
Returns:
next state