net.java.sen.dictionary
Class Node

java.lang.Object
  extended by net.java.sen.dictionary.Node
All Implemented Interfaces:
Cloneable

public final class Node
extends Object
implements Cloneable

A node within the Viterbi cost lattice


Field Summary
 int cost
          The cost of the best path through this Node, comprising this.prev, this Node, and this.next.
 short dictionaryCost
           
 short lcAttr
          Used in Viterbi path cost calculation
 int length
          The number of characters this Node covers
 Node lnext
          The next Node returned for the same ending position within the sentence by the Dictionary
 Morpheme morpheme
          The Morpheme that is contained within this Node
 Node next
          The next node on the best path through the Node lattice
 Node prev
          The previous node on the best path through the Node lattice
 short rcAttr1
          Used in Viterbi path cost calculation
 short rcAttr2
          Used in Viterbi path cost calculation
 Node rnext
          The next Node returned for the same starting position within the sentence by the Dictionary
 int span
          The number of characters between the end of the previous Node and the end of this one, including any ignored characters that do not form part of the Morpheme
 int start
          The index of the first character of this Node within the surface
 
Constructor Summary
Node()
           
 
Method Summary
 Node clone()
           
 void setCToken(CToken ctoken)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcAttr2

public short rcAttr2
Used in Viterbi path cost calculation


rcAttr1

public short rcAttr1
Used in Viterbi path cost calculation


lcAttr

public short lcAttr
Used in Viterbi path cost calculation


dictionaryCost

public short dictionaryCost

prev

public Node prev
The previous node on the best path through the Node lattice


next

public Node next
The next node on the best path through the Node lattice


lnext

public Node lnext
The next Node returned for the same ending position within the sentence by the Dictionary


rnext

public Node rnext
The next Node returned for the same starting position within the sentence by the Dictionary


morpheme

public Morpheme morpheme
The Morpheme that is contained within this Node


start

public int start
The index of the first character of this Node within the surface


length

public int length
The number of characters this Node covers


span

public int span
The number of characters between the end of the previous Node and the end of this one, including any ignored characters that do not form part of the Morpheme


cost

public int cost
The cost of the best path through this Node, comprising this.prev, this Node, and this.next. Lower cost is more likely, higher cost less likely

Constructor Detail

Node

public Node()
Method Detail

setCToken

public void setCToken(CToken ctoken)

clone

public Node clone()
Overrides:
clone in class Object


Copyright © 2012. All Rights Reserved.