net.java.sen
Class Token

java.lang.Object
  extended bynet.java.sen.Token

public final class Token
extends java.lang.Object

This class represent morpheme information.


Constructor Summary
  Token()
          constructor.
protected Token(Node n)
          constructor.
 
Method Summary
 int end()
          get end index of this token.
 java.lang.String getAddInfo()
          get additional information.
 java.lang.String getBasicString()
          get un-conjugate string.
 java.lang.String getCform()
          get conjugational form.
 int getCost()
          get cost.
 java.lang.String getPos()
          get part of speech.
 java.lang.String getPronunciation()
          get pronunciation.
 java.lang.String getReading()
          get reading.
 java.lang.String getSurface()
          get surface.
 java.lang.String getTermInfo()
          get termInfo.
 int length()
          get length of this token.
 void setAddInfo(java.lang.String addInfo)
          set additional information.
 void setBasicString(java.lang.String basic)
          set un-conjugate string.
 void setCform(java.lang.String cform)
          set conjugational form.
 void setCost(int cost)
          set cost.
 void setLength(int l)
          set length of token.
 void setPos(java.lang.String pos)
          set part of speech.
 void setPronunciation(java.lang.String pronunciation)
          set pronunciation.
 void setReading(java.lang.String read)
          set reading.
 void setStart(int s)
          set start position.
 void setSurface(java.lang.String surface)
          set surface.
 void setTermInfo(java.lang.String termInfo)
          set termInfo.
 int start()
          get start index of this token.
 java.lang.String toString()
          get string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

protected Token(Node n)
constructor.


Token

public Token()
constructor.

Method Detail

start

public int start()
get start index of this token.


setStart

public void setStart(int s)
set start position. This method is threa unsafe.


end

public int end()
get end index of this token.


length

public int length()
get length of this token.


setLength

public void setLength(int l)
set length of token. This method is threa unsafe.


getPos

public java.lang.String getPos()
get part of speech.

Returns:
part of speech which represents this token.

setPos

public void setPos(java.lang.String pos)
set part of speech.


getBasicString

public java.lang.String getBasicString()
get un-conjugate string. This method is thread unsafe.

Returns:
un-conjugate representation for morpheme.

setBasicString

public void setBasicString(java.lang.String basic)
set un-conjugate string. This method is thread unsafe.


getCform

public java.lang.String getCform()
get conjugational form. This method is thread unsafe.


setCform

public void setCform(java.lang.String cform)
set conjugational form. This method is thread unsafe.


getReading

public java.lang.String getReading()
get reading. This method is thread unsafe.


setReading

public void setReading(java.lang.String read)
set reading. This method is thread unsafe.


getPronunciation

public java.lang.String getPronunciation()
get pronunciation. This method is thread unsafe.


setPronunciation

public void setPronunciation(java.lang.String pronunciation)
set pronunciation. This method is thread unsafe.


getSurface

public java.lang.String getSurface()
get surface. This method is thread unsafe.


setSurface

public void setSurface(java.lang.String surface)
set surface. This method is thread unsafe.


getCost

public int getCost()
get cost. This method is thread unsafe.


setCost

public void setCost(int cost)
set cost. This method is thread unsafe.


getAddInfo

public java.lang.String getAddInfo()
get additional information. This method is thread unsafe.


setAddInfo

public void setAddInfo(java.lang.String addInfo)
set additional information. This method is thread unsafe.


getTermInfo

public java.lang.String getTermInfo()
get termInfo. This method is thread unsafe.


setTermInfo

public void setTermInfo(java.lang.String termInfo)
set termInfo. This method is thread unsafe.


toString

public java.lang.String toString()
get string representation. This method is thread unsafe.