public void addIfNoOverlap( WeightedPhraseInfo wpi ){for( WeightedPhraseInfo existWpi : getPhraseList() ){if( existWpi.isOffsetOverlap( wpi ) ) {existWpi.getTermsInfos().addAll( wpi.getTermsInfos() );return;}}getPhraseList().add( wpi );}

public void addIfNoOverlap ( WeightedPhraseInfo wpi ) { for ( WeightedPhraseInfo existWpi : getPhraseList ( ) ) { if ( existWpi . isOffsetOverlap ( wpi ) ) { existWpi . getTermsInfos ( ) . addAll ( wpi . getTermsInfos ( ) ) ; return ; } } getPhraseList ( ) . add ( wpi ) ; }
public virtual void AddIfNoOverlap(WeightedPhraseInfo wpi){foreach (WeightedPhraseInfo existWpi in PhraseList){if (existWpi.IsOffsetOverlap(wpi)){existWpi.TermsInfos.AddRange(wpi.TermsInfos);return;}}PhraseList.Add(wpi);}
