The feature id in RegexCountFeatures may get wrong values.
<code>
patternOccurence[index] =
Math.min(maxSegmentLength,patternOccurence[index]);
f.strId.id = maxSegmentLength * (index+1) +
patternOccurence[index];
</code>
The maximum value of patternOccurence[index] is
maxSegmentLength, but in the feature id assignment, we
can specify value from 0 to maxSegmentLength-1.
The window of ids created for every index should
probably have size of maxSegmentLength+1(to accomobdate
0 to maxSegmentLength offset values)
-amit