### Question:
Tokenizer { public static Set<List<String>> computeSplits(String string, int n1, int n2, int maxSplits) { Validate.notEmpty(string); Validate.notNull(string); Set<List<String>> splits = new HashSet<>(); computeSplits(splits, new ArrayList<>(), string, n1, n2, maxSplits); return splits; } private  Tokenizer(); static List<String> tokenize(String inputString); static Set<String> calculateCharNGrams(String string, int n); static Set<String> calculateAllCharEdgeNGrams(String string, int n1, int n2); static Set<String> calculateAllCharEdgeNGrams(String string, int n1, int n2, boolean mustHitLeftEdge); static Set<String> calculateCharEdgeNGrams(String string, int n, boolean mustHitLeftEdge); static Set<String> calculateWordNGrams(String string, int n); static List<String> calculateWordNGramsAsList(String string, int n); static Set<String> calculateAllCharNGrams(String string, int n1, int n2); static Set<String> calculateAllWordNGrams(String string, int n1, int n2); static Set<List<String>> computeSplits(String string, int n1, int n2, int maxSplits); static List<String> computeStartingWordNGrams(String string, int n1, int n2); static String getSentence(String string, int position); static List<String> getSentences(String inputText, boolean onlyRealSentences); static List<String> getSentences(String inputText, boolean onlyRealSentences, Language language); static List<String> getSentences(String inputText); static List<String> getSentences(String inputText, Language language); static String getPhraseFromBeginningOfSentence(String inputString); static String getPhraseToEndOfSentence(String string); static void main(String[] args); static final String TOKEN_SPLIT_REGEX; static final String SENTENCE_SPLIT_REGEX_EN; static final String SENTENCE_SPLIT_REGEX_DE; }### Answer:
@Test public void testComputeSplits() { collector.checkThat(Tokenizer.computeSplits("my broccoli rabe “spaghetti,” tomato & chicken", 1, 8, 1000).size(), is(64)); collector.checkThat(Tokenizer.computeSplits("This is a 3,5 test with,another comma.", 1, 4, 1000).size(), is(56)); Set<List<String>> lists = Tokenizer.computeSplits("American Flatbread Handmade Thin & Crispy Pizza Vegan Harvest", 1, 7, 2000); collector.checkThat(lists, hasItem(Arrays.asList("American Flatbread", "Handmade Thin & Crispy", "Pizza", "Vegan", "Harvest"))); }