/** * Returns the pair ID from a JCas created by an EOP LAP. * @param jcas * @return */ public static String getPairIdFromCas(JCas jcas) { Pair pairAnno = JCasUtil.selectSingle(jcas, Pair.class); return pairAnno.getPairID(); } }
/** * @param aCas * the <code>JCas</code> object * @return return the pairID of the T-H pair */ protected final String getPairID(JCas aCas) { FSIterator<TOP> pairIter = aCas.getJFSIndexRepository() .getAllIndexedFS(Pair.type); Pair p = (Pair) pairIter.next(); return p.getPairID(); }
/** * @param aCas the <code>JCas</code> object * * @return return the pairID of the T-H pair */ private String getPairID(JCas aCas) { FSIterator<TOP> pairIter = aCas.getJFSIndexRepository().getAllIndexedFS(Pair.type); Pair p = (Pair) pairIter.next(); return p.getPairID(); }
/** * @param aCas * input T-H pair * @return return the pairID of the pair */ protected String getPairID(JCas aCas) { FSIterator<TOP> pairIter = aCas.getJFSIndexRepository() .getAllIndexedFS(Pair.type); Pair p = (Pair) pairIter.next(); return p.getPairID(); }
/** * @param aCas * the <code>JCas</code> object * @return return the pairID of the T-H pair */ public static String getPairID(JCas aCas) { FSIterator<TOP> pairIter = aCas.getJFSIndexRepository() .getAllIndexedFS(Pair.type); Pair p = (Pair) pairIter.next(); return p.getPairID(); }
/** * @param aCas * the <code>JCas</code> object * @return return the pairID of the T-H pair */ protected final String getPairID(JCas aCas) { FSIterator<TOP> pairIter = aCas.getJFSIndexRepository() .getAllIndexedFS(Pair.type); Pair p = (Pair) pairIter.next(); return p.getPairID(); }
/** * Returns the pair identifier of the pair contained in the specified CAS * * @param jcas the CAS * * @return the pair identifier */ protected String getPairId(JCas jcas) { FSIterator<TOP> pairIter = jcas.getJFSIndexRepository().getAllIndexedFS(Pair.type); Pair p = null; if (pairIter.hasNext()) p = (Pair)pairIter.next(); if (p != null) return p.getPairID(); return null; }
int pairID = Integer.parseInt(pair.getPairID()); logger.debug("processing pair "+pairID);
if (aOut != null) aOut.printf("PairID: %s\n", p.getPairID()); aOut.printf("GoldAnswer: %s\n", p.getGoldAnswer());
int pairID = Integer.parseInt(pair.getPairID()); DecisionLabel goldAnswer = null; try {
String stringID = pairAnno.getPairID(); try { id = Integer.valueOf(stringID);