diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-11 11:21:17 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-11 11:21:17 +0800 |
commit | d4a39f57c7d2dc715340e0c6cfd73f577ce5a7fa (patch) | |
tree | 8a644dadcd5048962c178deb2875d344c66f7dad /utils/segment/ngseg.cpp | |
parent | 9ca38247ddc9dfaa5f5d193a3727c4edbd18a799 (diff) | |
download | libpinyin-d4a39f57c7d2dc715340e0c6cfd73f577ce5a7fa.tar.gz libpinyin-d4a39f57c7d2dc715340e0c6cfd73f577ce5a7fa.tar.xz libpinyin-d4a39f57c7d2dc715340e0c6cfd73f577ce5a7fa.zip |
add lambda parameter
Diffstat (limited to 'utils/segment/ngseg.cpp')
-rw-r--r-- | utils/segment/ngseg.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp index 57cc164..5fb2a42 100644 --- a/utils/segment/ngseg.cpp +++ b/utils/segment/ngseg.cpp @@ -162,8 +162,11 @@ int main(int argc, char * argv[]){ system_bigram.attach("bigram.db", ATTACH_READONLY); Bigram user_bigram; + gfloat lambda = system_table_info.get_lambda(); + /* init phrase lookup */ - PhraseLookup phrase_lookup(&phrase_table, &phrase_index, + PhraseLookup phrase_lookup(lambda, + &phrase_table, &phrase_index, &system_bigram, &user_bigram); |