DaisyZheWang RecentChanges

ViterbiCRF

ViterbiCRFDownload

– All Files in this holder are under the New BSD License

We describe how to install an array-based SQL implementation of the Viterbi algorithm for compute the maxlimum likelihood labeling for a piece of text using Condition Random Field (CRF) in PostgreSQL 8.4.1.

-- Compute the ML segmentation for the first document select ie.viterbi_top1(1); select * from display_u10; -- Compute the ML segmentation for the first 10 documents truncate table u10; select ie.viterbi_top1(doc_id) from doc_id_tbl where doc_id<11; select * from display_u10;