p.setBegin(0); p.setEnd(5); p.setConfidence(0.98); p.addToIndexes();
e1.setConfidence(0.5); e1.setGender("male"); e1.addToIndexes();
public JCasSerializationTester() throws UIMAException { out = JCasFactory.createJCas(); in = JCasFactory.createJCas(); in.setDocumentText("This is a test"); final DocumentAnnotation inDA = (DocumentAnnotation) in.getDocumentAnnotationFs(); inDA.setDocumentClassification("CLASS"); final Location l = new Location(in); l.setBegin(10); l.setEnd(12); l.setGeoJson(GEO_JSON); l.setValue("Dinagat Islands"); l.setConfidence(0.9d); l.addToIndexes(in); final ReferenceTarget rt = new ReferenceTarget(in); rt.setBegin(0); rt.setEnd(1); rt.addToIndexes(in); final Person p = new Person(in); p.setBegin(2); p.setEnd(8); p.setGender("Male"); p.setValue("Peter"); p.setConfidence(0.5d); p.setReferent(rt); p.addToIndexes(in); }
js.setGender("Male"); js.setValue("John Smith"); js.setConfidence(0.9d); js.setReferent(target); js.addToIndexes(jCas); jd.setGender("Female"); jd.setValue("Jane Doe"); jd.setConfidence(0.8d); jd.addToIndexes(jCas); he.setGender("Male"); he.setValue("He"); he.setConfidence(0.9d); he.setReferent(target); he.addToIndexes(jCas);