private ViterbiNode createGlueNode ( int startIndex , ViterbiNode glueBase , String surface ) { return new ViterbiNode ( glueBase . getWordId ( ) , surface , glueBase . getLeftId ( ) , glueBase . getRightId ( ) , glueBase . getWordCost ( ) , startIndex , ViterbiNode . Type . INSERTED ) ; }
Create a glue node to be inserted based on ViterbiNode already in the lattice . The new node takes the same parameters as the node it is based on but the word is truncated to match the hole in the lattice caused by the new user entry