restore gen_unigram.cpp
authorPeng Wu <alexepico@gmail.com>
Sat, 23 Mar 2013 08:49:43 +0000 (16:49 +0800)
committerPeng Wu <alexepico@gmail.com>
Sat, 23 Mar 2013 08:49:43 +0000 (16:49 +0800)
utils/training/gen_unigram.cpp

index 9788271..62584a9 100644 (file)
@@ -40,10 +40,12 @@ int main(int argc, char * argv[]){
             DICTIONARY != table_info->m_file_type)
             continue;
 
-        guint32 freq = 2;
+        guint32 freq = 1;
+#if 0
         /* skip GBK_DICTIONARY. */
         if (GBK_DICTIONARY == table_info->m_dict_index)
             freq = 1;
+#endif
 
         const char * binfile = table_info->m_system_filename;