Пример #1
0
 /**
  * Simple test case: one stopword file.
  *
  * @throws UIMAException
  */
 @Test
 public void test() throws UIMAException {
   String[] expectedTokens = new String[] {"text", "containing", "stopwords", "."};
   AnalysisEngineDescription stopwordremover =
       createEngineDescription(
           StopWordRemover.class, StopWordRemover.PARAM_MODEL_LOCATION, STOPWORDSFILE_LOCATION1);
   JCas jcas = TestRunner.runTest(stopwordremover, LANGUAGE, TEXT);
   assertToken(expectedTokens, select(jcas, Token.class));
 }