|
MADlib
1.1 A newer version is available
User Documentation
|
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. 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... | |
Definition in file viterbi.sql_in.
| text vcrf_label | ( | text | segtbl, |
| text | factor_mtbl, | ||
| text | factor_rtbl, | ||
| text | labeltbl, | ||
| text | resulttbl | ||
| ) |
| 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 |
Definition at line 77 of file viterbi.sql_in.
| int [] vcrf_top1_label | ( | int[] | marray, |
| int[] | rarray, | ||
| int | nlabel | ||
| ) |
| marray | Name of arrays containing m factors |
| rarray | Name of arrays containing r factors |
| nlabel | Total number of labels in the label space |
Definition at line 63 of file viterbi.sql_in.
| text vcrf_top1_view | ( | text | segtbl, |
| text | labeltbl, | ||
| text | result_tbl, | ||
| text | vw | ||
| ) |
| 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. |
Definition at line 43 of file viterbi.sql_in.