@Test public void testTagAroundApostrophe() throws ProcessingException { String text = "Controlla l<b>'</b>accesso al <i>file</i>."; String correctedText = "Controlla l'<b></b>accesso al <i>file</i>."; String strippedText = "Controlla l'accesso al file."; Sentence sentence = process(language.reversed(), text); assertEquals(correctedText, sentence.toString(true, false)); assertEquals(strippedText, sentence.toString(false, false)); assertTrue(sentence.hasTags()); assertArrayEquals(new Word[]{ w_("Controlla"), _w("l'"), w_("accesso"), _w_("al"), w("file"), w(".") }, sentence.getWords()); assertArrayEquals(new Tag[]{ t("<b>", 2), t("</b>", 2), _t("<i>", 4), t("</i>", 5) }, sentence.getTags()); }
public Sentence[] process(LanguageDirection language, String[] batch) throws ProcessingException, InterruptedException { return process(language, batch, null); }
Preprocessor implements Closeable { public Sentence[] process(LanguageDirection language, String[] batch) throws ProcessingException, InterruptedException { return process(language, batch, null); } }
Preprocessor implements Closeable { public Sentence[] process(LanguageDirection language, String[] batch) throws ProcessingException, InterruptedException { return process(language, batch, null); } Preprocessor();  Preprocessor(int threads);  Preprocessor(XMLPipelineBuilder<String, Sentence> builder);  Preprocessor(int threads, XMLPipelineBuilder<String, Sentence> builder); }
Preprocessor implements Closeable { public Sentence[] process(LanguageDirection language, String[] batch) throws ProcessingException, InterruptedException { return process(language, batch, null); } Preprocessor();  Preprocessor(int threads);  Preprocessor(XMLPipelineBuilder<String, Sentence> builder);  Preprocessor(int threads, XMLPipelineBuilder<String, Sentence> builder); Sentence[] process(LanguageDirection language, String[] batch); List<Sentence> process(LanguageDirection language, List<String> batch); Sentence process(LanguageDirection language, String text); Sentence[] process(LanguageDirection language, String[] batch, Options options); List<Sentence> process(LanguageDirection language, List<String> batch, Options options); Sentence process(LanguageDirection language, String text, Options options); int getThreads(); @Override void close(); }
Preprocessor implements Closeable { public Sentence[] process(LanguageDirection language, String[] batch) throws ProcessingException, InterruptedException { return process(language, batch, null); } Preprocessor();  Preprocessor(int threads);  Preprocessor(XMLPipelineBuilder<String, Sentence> builder);  Preprocessor(int threads, XMLPipelineBuilder<String, Sentence> builder); Sentence[] process(LanguageDirection language, String[] batch); List<Sentence> process(LanguageDirection language, List<String> batch); Sentence process(LanguageDirection language, String text); Sentence[] process(LanguageDirection language, String[] batch, Options options); List<Sentence> process(LanguageDirection language, List<String> batch, Options options); Sentence process(LanguageDirection language, String text, Options options); int getThreads(); @Override void close();  }