373839404142434445
fs.setFeatureValueFromString(type.getFeatureByBaseName("text"), ((CategorizationResults) results).getCategory()); cas.addFsToIndexes(fs); } catch (Exception e) { e.printStackTrace(); throw new MappingException(e); } }
343536373839404142
KeywordFS fs = new KeywordFS(cas); Type type = fs.getType(); fs.setFeatureValueFromString(type.getFeatureByBaseName("text"), k.getText()); // text fs.addToIndexes(); } catch (Exception e) { throw new MappingException(e); } } }
5152535455565758
setLanaguage(results, aJCas); if (processors.isEmpty()) initializeProcessors(); processors.get(results.getClass()).process(aJCas, results); } catch (Exception e) { throw new MappingException(e); } }