PosTagger extends PosTagger_ImplBase<Token> { public PosTagger() { super(new CleartkTokenOps()); } PosTagger(); static AnalysisEngineDescription getDescription(); static AnalysisEngineDescription getDescription(String languageCode, String modelPath);  }
@Test public void posTaggerTest() throws Exception { this.assumeBigMemoryTestsEnabled(); this.logger.info(BIG_MEMORY_TEST_MESSAGE); initDefaultModel(); this.jCas.reset(); tokenBuilder = new TokenBuilder<Token, Sentence>(Token.class, Sentence.class, "pos", "stem"); this.tokenBuilder.buildTokens( this.jCas, "The brown fox jumped quickly over the lazy dog .", "The brown fox jumped quickly over the lazy dog ."); SimplePipeline.runPipeline(jCas, posTagger); List<String> expectedPos = Arrays.asList("DT JJ NN VBD RB IN DT JJ NN .".split(" ")); List<String> actualPos = new ArrayList<String>(); for (Token token : JCasUtil.select(this.jCas, Token.class)) { actualPos.add(token.getPos()); } Assert.assertEquals(expectedPos, actualPos); }