diff --git a/src/TICCL-lexstat.cxx b/src/TICCL-lexstat.cxx index a5ccfe4..e9f4d1f 100644 --- a/src/TICCL-lexstat.cxx +++ b/src/TICCL-lexstat.cxx @@ -508,7 +508,6 @@ int main( int argc, const char *argv[] ){ cerr << "unable to acces the path for '" << lc_file_name << "'" << endl; return EXIT_FAILURE; } - string confusion_file_name = output_name + ".clip" + clipS + ".ld" + depthS + ".charconfus"; if ( stripdia ){ diafile = output_name + ".lc.diac"; } @@ -529,6 +528,8 @@ int main( int argc, const char *argv[] ){ create_dia_file( diafile, lchars, hashes ); } if ( depth > 0 ){ + string confusion_file_name = output_name + ".clip" + clipS + + ".ld" + depthS + ".charconfus"; generate_confusion( confusion_file_name, hashes, depth, full ); } cout << "done!" << endl; diff --git a/src/TICCL-unk.cxx b/src/TICCL-unk.cxx index e0961f4..95c2b43 100644 --- a/src/TICCL-unk.cxx +++ b/src/TICCL-unk.cxx @@ -228,7 +228,6 @@ S_Class classify( const UnicodeString& word, int is_digit = 0; int is_punct = 0; int is_letter = 0; - int is_space = 0; int is_out = 0; int word_len = word.length(); if ( word_len < 2 ){ @@ -246,7 +245,8 @@ S_Class classify( const UnicodeString& word, for ( int i=0; i < word_len; ++i ){ UChar uchar = word[i]; if ( u_isspace( uchar ) ){ - ++is_space; // ignored atm + // ignore + continue; } else { UnicodeString chars = uchar;