Here you can find the source of normalizeTestAndSplit(String text)
public static List<String> normalizeTestAndSplit(String text)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.List; public class Main { public static List<String> normalizeTestAndSplit(String text) { return Arrays.asList(text.split("(\\.|;|!|\\?|,)+")); }/* w w w.j ava 2s . co m*/ }