Package org.apache.ctakes.ytex.uima.model

Examples of org.apache.ctakes.ytex.uima.model.UimaType


   */
  private AnnoMappingInfo initMapInfo(final FeatureStructure fs) {
    final Type type = fs.getType();
    final String annoName = type.getShortName().toLowerCase();
    AnnoMappingInfo mapInfoTmp;
    final UimaType ut = uimaTypeMap.get(type.getName());
    if (this.mapAnnoMappingInfo.containsKey(type.getName())) {
      mapInfoTmp = this.mapAnnoMappingInfo.get(type.getName()).deepCopy();
    } else {
      mapInfoTmp = new AnnoMappingInfo();
    }
    final AnnoMappingInfo mapInfo = mapInfoTmp;
    if (ut != null)
      mapInfo.setUimaTypeId(ut.getUimaTypeID());
    // first see if the table name has been set in beans-uima.xml
    if (Strings.isNullOrEmpty(mapInfo.getTableName())) {
      // next see if the table name has been set in ref_uima_type
      if (ut != null && !Strings.isNullOrEmpty(ut.getTableName()))
        mapInfo.setTableName(ut.getTableName());
      else
        // default to anno_[short name]
        mapInfo.setTableName("anno_" + annoName);
    }
    final List<Feature> features = type.getFeatures();
View Full Code Here

TOP

Related Classes of org.apache.ctakes.ytex.uima.model.UimaType

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.