We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5e978 commit f0d1381Copy full SHA for f0d1381
1 file changed
src/FrogAPI.cxx
@@ -192,6 +192,11 @@ FrogAPI::FrogAPI( FrogOptions &opt,
192
// for some modules init can take a long time
193
// so first make sure it will not fail on some trivialities
194
//
195
+ if ( options.doTok && !configuration.hasSection("tagger") ){
196
+ LOG << "Missing [[tagger]] section in config file." << endl;
197
+ LOG << "cannot run without a tagger!" << endl;
198
+ throw runtime_error( "Frog initialization failed" );
199
+ }
200
if ( options.doTok && !configuration.hasSection("tokenizer") ){
201
LOG << "Missing [[tokenizer]] section in config file." << endl;
202
LOG << "Disabled the tokenizer." << endl;
0 commit comments