Skip to content

Commit

Permalink
changed some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Feb 6, 2023
1 parent fd3cb1a commit 818c7e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ucto_tokenizer_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ bool UctoTokenizer::init( const TiCC::Configuration& config ){
&& *language_list.begin() != r_lang ){
language_list.insert( language_list.begin(), r_lang );
tokenizer->setLangDetection(false);
LOG << "Language detection is disabled, while you are using a "
<< "default language: '" << r_lang
<< "' which is not supported by Textcat" << endl;
}
if ( !language_list.empty() ){
LOG << "init tokenizer for languages: " << language_list << endl;
Expand All @@ -178,7 +181,6 @@ bool UctoTokenizer::init( const TiCC::Configuration& config ){
}
}
if ( !language_list.empty() ){
LOG << "default tokenizer language = " << language_list[0] << endl;
tokenizer->setLanguage( language_list[0] );
}
}
Expand Down

0 comments on commit 818c7e9

Please sign in to comment.