@Test public void testCreateText() throws UIMAException { jCas = JCasFactory.createText("For great 20 minute talks, check out TED.com.", "en"); AnnotationFactory.createAnnotation(jCas, 0, 3, Token.class); assertEquals("For", JCasUtil.selectByIndex(jCas, Token.class, 0).getCoveredText()); assertEquals("en", jCas.getDocumentLanguage()); }
public static JCas createText(String aText) throws ResourceInitializationException, CASException { return CasFactory.createText(aText, null).getJCas(); }
JCasFactory { public static JCas createText(String aText) throws ResourceInitializationException, CASException { return CasFactory.createText(aText, null).getJCas(); } }
JCasFactory { public static JCas createText(String aText) throws ResourceInitializationException, CASException { return CasFactory.createText(aText, null).getJCas(); } private  JCasFactory(); }
JCasFactory { public static JCas createText(String aText) throws ResourceInitializationException, CASException { return CasFactory.createText(aText, null).getJCas(); } private  JCasFactory(); static JCas createText(String aText); static JCas createText(String aText, String aLanguage); static JCas createJCas(); static JCas createJCas(String... typeSystemDescriptorNames); static JCas createJCasFromPath(String... typeSystemDescriptorPaths); static JCas createJCas(TypeSystemDescription typeSystemDescription); static JCas createJCas(String fileName, TypeSystemDescription typeSystemDescription); }
JCasFactory { public static JCas createText(String aText) throws ResourceInitializationException, CASException { return CasFactory.createText(aText, null).getJCas(); } private  JCasFactory(); static JCas createText(String aText); static JCas createText(String aText, String aLanguage); static JCas createJCas(); static JCas createJCas(String... typeSystemDescriptorNames); static JCas createJCasFromPath(String... typeSystemDescriptorPaths); static JCas createJCas(TypeSystemDescription typeSystemDescription); static JCas createJCas(String fileName, TypeSystemDescription typeSystemDescription);  }