File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ void Mwu::Classify(){
393
393
}
394
394
}
395
395
} // for (i < max)
396
- if (matchLength > 0 ) {
396
+ if ( matchLength > 0 ) {
397
397
// concat
398
398
if ( debug >1 ){
399
399
DBG << " mwu found, processing" << endl;
@@ -434,17 +434,17 @@ void Mwu::add_result( const frog_data& fd,
434
434
{
435
435
el = s->add_child <folia::EntitiesLayer>( args );
436
436
}
437
- for ( const auto & mwu : fd. mwus ){
438
- if ( ! el->id (). empty () ){
439
- args[ " generate_id " ] = el-> id ();
440
- }
441
- if ( textclass != " current " ){
442
- args[ " textclass " ] = textclass;
443
- }
437
+ if ( !el-> id (). empty () ){
438
+ args[ " generate_id " ] = el->id ();
439
+ }
440
+ if ( textclass != " current " ){
441
+ args[ " textclass" ] = textclass;
442
+ }
443
+ for ( const auto & [start,end] : fd. mwus ){
444
444
#pragma omp critical (foliaupdate)
445
445
{
446
446
folia::Entity *e = el->add_child <folia::Entity>( args );
447
- for ( size_t pos = mwu. first ; pos <= mwu. second ; ++pos ){
447
+ for ( size_t pos = start ; pos <= end ; ++pos ){
448
448
e->append ( wv[pos] );
449
449
}
450
450
}
You can’t perform that action at this time.
0 commit comments