Examples of SemanticTypeUtil


Examples of edu.isi.karma.modeling.semantictypes.SemanticTypeUtil

//      identifyOutliers(worksheet, vWorkspace, crfModelHandler, newType);
//      c.add(new TagsUpdate());
//    }
   
    if(trainAndShowUpdates) {
      new SemanticTypeUtil().trainOnColumn(workspace, worksheet, newType, selection);
    }
   
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    c.add(new AlignmentSVGVisualizationUpdate(worksheetId,
        alignment));     
View Full Code Here

Examples of edu.isi.karma.modeling.semantictypes.SemanticTypeUtil

         
          if (!cn.hasUserType())
          {
            worksheet.getSemanticTypes().unassignColumnSemanticType(hNodeId);
            List<SemanticType> suggestedSemanticTypes =
                new SemanticTypeUtil().getColumnSemanticSuggestions(workspace, worksheet, cn, 4, selection);
            cn.setSuggestedSemanticTypes(suggestedSemanticTypes);
          }
        }
      }
    } else {
View Full Code Here

Examples of edu.isi.karma.modeling.semantictypes.SemanticTypeUtil

            currentColumnPath = path;
            break;
          }
        }
       
        SemanticTypeColumnModel model = new SemanticTypeUtil().predictColumnSemanticType(workspace, worksheet, currentColumnPath, 4, selection);
        if(model != null) {
          OntologyManager ontMgr = workspace.getOntologyManager();
          Alignment alignment = AlignmentManager.Instance().getAlignmentOrCreateIt(workspace.getId(), worksheetId, ontMgr);
          JSONObject json = model.getAsJSONObject(ontMgr, alignment);
          pw.print(json.toString());
View Full Code Here

Examples of edu.isi.karma.modeling.semantictypes.SemanticTypeUtil

      if (!(n instanceof ColumnNode)) continue;
     
      ColumnNode cn = (ColumnNode)n;
           
      List<SemanticType> suggestedSemanticTypes =
          new SemanticTypeUtil().getColumnSemanticSuggestions(workspace, worksheet, cn, 4, selection);
      cn.setSuggestedSemanticTypes(suggestedSemanticTypes);
    }
  }
View Full Code Here

Examples of edu.isi.karma.modeling.semantictypes.SemanticTypeUtil

    // Update the synonym semanticTypes
    // worksheet.getSemanticTypes().addSynonymTypesForHNodeId(newType.getHNodeId(),
    // newSynonymTypes);

    if (trainAndShowUpdates) {
      new SemanticTypeUtil().trainOnColumn(workspace, worksheet, newType, selection);
    }
   
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    c.add(new AlignmentSVGVisualizationUpdate(worksheetId,
        alignment));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.