assertTrue(analyzer.getConfig().isPosTypeChunkerForced());
checkSingleSentence(analysed,SINGLE_SENTENCE_TOKENS,true,false);
}
@Test
public void testSingleSentenceNoChunkerNoPosConfig(){
TextAnalyzerConfig config = new TextAnalyzerConfig();
config.enablePosTagger(false);
config.enableChunker(true);//must be ignored for Chunks if no Pos
TextAnalyzer analyzer = new TextAnalyzer(openNLP,LANGUAGE,config);
AnalysedText analysed = analyzer.analyseSentence(SINGLE_SENTENCE);
assertNotNull(analysed);
//check the default config
assertFalse(analyzer.getConfig().isSimpleTokenizerForced());