diff options
author | Peng Wu <alexepico@gmail.com> | 2017-01-19 18:07:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-01-19 18:07:27 +0800 |
commit | 8003335fa85e0061d27779c5070c0336d9a4a1d4 (patch) | |
tree | d451f2176692e994a0ba29e3a520e854efab6a71 /src/lookup/phonetic_lookup_linear.h | |
parent | 581156b5e80b3be00131d2338d7dc6424f91af34 (diff) | |
download | libpinyin-8003335fa85e0061d27779c5070c0336d9a4a1d4.tar.gz libpinyin-8003335fa85e0061d27779c5070c0336d9a4a1d4.tar.xz libpinyin-8003335fa85e0061d27779c5070c0336d9a4a1d4.zip |
fixes trellis_value_less_than function
Diffstat (limited to 'src/lookup/phonetic_lookup_linear.h')
-rw-r--r-- | src/lookup/phonetic_lookup_linear.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lookup/phonetic_lookup_linear.h b/src/lookup/phonetic_lookup_linear.h index 7bed44e..5cd745e 100644 --- a/src/lookup/phonetic_lookup_linear.h +++ b/src/lookup/phonetic_lookup_linear.h @@ -49,10 +49,6 @@ public: if (m_nelem < nbest) { m_elements[m_nelem] = *item; m_nelem ++; - - /* mark the first slot of trellis_node. */ - if (1 == m_nelem) - m_elements[0].m_current_index = 0; return true; } |