Package org.apache.uima.alchemy.mapper.exception

Examples of org.apache.uima.alchemy.mapper.exception.MappingException


      fs.setFeatureValueFromString(type.getFeatureByBaseName("text"),
              ((CategorizationResults) results).getCategory());
      cas.addFsToIndexes(fs);
    } catch (Exception e) {
      e.printStackTrace();
      throw new MappingException(e);
    }

  }
View Full Code Here


        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);
      }
    }
  }
View Full Code Here

      setLanaguage(results, aJCas);
      if (processors.isEmpty())
        initializeProcessors();
      processors.get(results.getClass()).process(aJCas, results);
    } catch (Exception e) {
      throw new MappingException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.alchemy.mapper.exception.MappingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.