code: public String[] segmenterExceptions(final String[] lines) {
      final List<String> sentences = new ArrayList<>();
      for (final String line : lines) {
        final String segmentedLine = segmenterNonBreaker(line);
        final String[] lineSentences = segmentedLine.split("\n");
        for (final String lineSentence : lineSentences) {
          sentences.add(lineSentence);
        }
      }
      return sentences.toArray(new String[sentences.size()]);
    }
docs: Segment the rest of the text taking into account some exceptions for
  periods as sentence breakers. It decides when a period marks an end of
  sentence.
  
  @param lines
  the segmented sentences so far
  @return all the segmented sentences