Skip to content

Commit

Permalink
allow "ignore" as a value for token_trans_file
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 21, 2022
1 parent 024c424 commit a0c133b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tagger_base.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ bool BaseTagger::init( const TiCC::Configuration& config ){
if ( tokFile.empty() ){
tokFile = config.lookUp( "token_trans_file" );
}
if ( !tokFile.empty() ){
if ( !tokFile.empty()
&& tokFile != "ignore" ){
tokFile = prefix( config.configDir(), tokFile );
if ( !fill_map( tokFile ) ){
LOG << "failed to load a token translation file from: '"
Expand Down

0 comments on commit a0c133b

Please sign in to comment.