Skip to content

Commit

Permalink
minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed May 3, 2024
1 parent 4e25d83 commit bc5542d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/TICCL-lexstat.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/TICCL-unk.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ){
Expand All @@ -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;
Expand Down

0 comments on commit bc5542d

Please sign in to comment.