Skip to content

Commit

Permalink
use separated log and debug stream for the tokenizer. Needs ucto 0.28!
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Feb 6, 2023
1 parent 166a492 commit 2cfffe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PKG_CHECK_MODULES([folia],[folia >= 2.9])
CXXFLAGS="$CXXFLAGS $folia_CFLAGS"
LIBS="$folia_LIBS $LIBS"

PKG_CHECK_MODULES([ucto], [ucto >= 0.25] )
PKG_CHECK_MODULES([ucto], [ucto >= 0.28] )
CXXFLAGS="$CXXFLAGS $ucto_CFLAGS"
LIBS="$ucto_LIBS $LIBS"

Expand Down
7 changes: 2 additions & 5 deletions src/ucto_tokenizer_mod.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ UctoTokenizer::UctoTokenizer( TiCC::LogStream *err_log,

UctoTokenizer::~UctoTokenizer(){
/// Destroy the Tokenizer
// dbg_log is deleted by deleting the tokenizer element.
if ( dbgLog != errLog ){
delete errLog;
}
delete tokenizer;
}

Expand Down Expand Up @@ -109,7 +105,8 @@ bool UctoTokenizer::init( const TiCC::Configuration& config ){
throw runtime_error( "ucto tokenizer is already initialized" );
}
tokenizer = new Tokenizer::TokenizerClass();
tokenizer->setErrorLog( dbgLog );
tokenizer->setErrorLog( errLog );
tokenizer->setDebugLog( dbgLog );
tokenizer->setEosMarker( "" );
tokenizer->setVerbose( false );
tokenizer->setParagraphDetection( false ); //detection of paragraphs
Expand Down

0 comments on commit 2cfffe1

Please sign in to comment.