@Test public void testRequiredSpaceFalseWithRightSpace() throws ProcessingException { String text = "Hello<a> !"; Sentence sentence = process(text); assertEquals(text, sentence.toString(true, false)); assertEquals("Hello!", sentence.toString(false, false)); assertTrue(sentence.hasTags()); assertArrayEquals(new Word[]{ w("Hello"), _w("!") }, sentence.getWords()); assertArrayEquals(new Tag[]{ t_("<a>", 1) }, 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();  }