User Documentation
viterbi.sql_in File Reference

concatenate a set of input values into arrays to feed into viterbi c function and create a human readable view of the output More...

Go to the source code of this file.

Functions

text vcrf_top1_view (text segtbl, text labeltbl, text result_tbl, text vw)
 This function creates a human readable view of the results of Viterbi function.
int[] vcrf_top1_label (int[] marray, int[] rarray, int nlabel)
 This function implements the Viterbi algorithm which takes the sentence to be label as input and return the top1 labeling for that sentence.
text vcrf_label (text segtbl, text factor_mtbl, text factor_rtbl, text labeltbl, text resulttbl)
 This function prepares the inputs for the c function 'vcrf_top1_label' and invoke the c function.

Detailed Description

Date:
February 2012

Definition in file viterbi.sql_in.


Function Documentation

text vcrf_label ( text  segtbl,
text  factor_mtbl,
text  factor_rtbl,
text  labeltbl,
text  resulttbl 
)
Parameters:
segtblName of table containing all the testing sentences.
factor_mtblName of table containing all the m factors.
factor_rtblName of table containing all the r factors.
labeltblName of table containing all the labels in the label space.
resulttblName of table to store the output
Returns:
the top1 label sequence, the last two elements in the array is used to calculate the top1 probability

Definition at line 77 of file viterbi.sql_in.

int [] vcrf_top1_label ( int[]  marray,
int[]  rarray,
int  nlabel 
)
Parameters:
marrayName of arrays containing m factors
rarrayName of arrays containing r factors
nlabelTotal number of labels in the label space
Returns:
the top1 label sequence, the last two elements in the array is used to calculate the top1 probability

Definition at line 63 of file viterbi.sql_in.

text vcrf_top1_view ( text  segtbl,
text  labeltbl,
text  result_tbl,
text  vw 
)
Parameters:
segtblName of table containing all the testing sentences.
labeltblName of table containing all the labels in the label space.
result_tblName of table storing the best label sequence and the conditional probability.
vwName of the human readable view of output.

Definition at line 43 of file viterbi.sql_in.