protected void printError ( final Span references [ ] , final Span predictions [ ] , final T referenceSample , final T predictedSample , final String sentence ) { final List < Span > falseNegatives = new ArrayList < Span > ( ) ; final List < Span > falsePositives = new ArrayList < Span > ( ) ; findErrors ( references , predictions , falseNegatives , falsePositives ) ; if ( falsePositives . size ( ) + falseNegatives . size ( ) > 0 ) { printSamples ( referenceSample , predictedSample ) ; printErrors ( falsePositives , falseNegatives , sentence ) ; } }
for the sentence detector