@Override public float scoreInNode() throws IOException { float score = 0.0f; // Sum the score of the sub-spans for (int i = 0; i < subSpans.length; i++) { score += subSpans[i].scoreInNode(); } // compute the sloppy weight float sloppyWeight = this.sloppyWeight(this.getSlop()); return score * sloppyWeight; }