concatenate a set of input values into arrays to feed into viterbi c function and create a human readable view of the output
More...
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
text vcrf_label |
( |
text |
segtbl, |
|
|
text |
factor_mtbl, |
|
|
text |
factor_rtbl, |
|
|
text |
labeltbl, |
|
|
text |
resulttbl |
|
) |
| |
- Parameters
-
segtbl | Name of table containing all the testing sentences. |
factor_mtbl | Name of table containing all the m factors. |
factor_rtbl | Name of table containing all the r factors. |
labeltbl | Name of table containing all the labels in the label space. |
resulttbl | Name 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
int [] vcrf_top1_label |
( |
int[] |
marray, |
|
|
int[] |
rarray, |
|
|
int |
nlabel |
|
) |
| |
- Parameters
-
marray | Name of arrays containing m factors |
rarray | Name of arrays containing r factors |
nlabel | Total 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
text vcrf_top1_view |
( |
text |
segtbl, |
|
|
text |
labeltbl, |
|
|
text |
result_tbl, |
|
|
text |
vw |
|
) |
| |
- Parameters
-
segtbl | Name of table containing all the testing sentences. |
labeltbl | Name of table containing all the labels in the label space. |
result_tbl | Name of table storing the best label sequence and the conditional probability. |
vw | Name of the human readable view of output. |