@Override
    public boolean add(Segment s)
    {
        var result = super.add(s);
        _map[s.beg()][s.end()]=super.size()-1;
        return result;
    }
Contains the segmentation() method.

@author  Peter Boros
fsa/src/main/java/com/yahoo/fsa/segmenter/Segments.java