HunPosTagger extends JCasAnnotator_ImplBase { @Override public void destroy() { runtimeProvider.uninstall(); super.destroy(); }  @Override void initialize(UimaContext aContext); @Override void process(JCas aJCas); @Override void destroy(); static final String PARAM_LANGUAGE; static final String PARAM_VARIANT; static final String PARAM_MODEL_ARTIFACT_URI; static final String PARAM_MODEL_LOCATION; static final String PARAM_MAPPING_ENABLED; static final String PARAM_POS_MAPPING_LOCATION; static final String PARAM_PRINT_TAGSET; }
@Test @Ignore("Takes too long") public void multiDocumentTest() throws Exception { String testDocument = "This is a test ."; String[] tags = { "DT", "VBZ", "DT", "NN", "." }; String[] tagClasses = { "POS_ART", "POS_V", "POS_ART", "POS_NN", "POS_PUNC" }; AnalysisEngine engine = createEngine(HunPosTagger.class); HideOutput hideOut = new HideOutput(); try { for (int n = 0; n < 100; n++) { JCas aJCas = TestRunner.runTest(engine, "en", testDocument); AssertAnnotations.assertPOS(tagClasses, tags, select(aJCas, POS.class)); } } finally { engine.destroy(); hideOut.restoreOutput(); } }