Examples of EntSigHolder


Examples of com.ikanow.infinit.e.api.knowledge.processing.ScoringUtils.EntSigHolder

 
  static void calcAssocationSignificance(String ent1_index, String ent2_index, String geo_index, BasicDBObject assoc, HashMap<String, EntSigHolder> entitySet)
  {
    double dPythag = 0.0;
    if (null != ent1_index) {
      EntSigHolder ent = entitySet.get(ent1_index);
      if (null != ent) {
        if (null != ent.masterAliasSH) { // (for the 3 indexes, use the aliased version if it exists)
          ent = ent.masterAliasSH;
        }
        assoc.put(AssociationPojo.entity1_sig_, ent.datasetSignificance);
        dPythag += ent.datasetSignificance*ent.datasetSignificance;
      }
    }
    if (null != ent2_index) {
      EntSigHolder ent = entitySet.get(ent2_index);
      if (null != ent) {
        if (null != ent.masterAliasSH) {
          ent = ent.masterAliasSH;
        }
        assoc.put(AssociationPojo.entity2_sig_, ent.datasetSignificance);
        dPythag += ent.datasetSignificance*ent.datasetSignificance;
      }
    }
    if (null != geo_index) {     
      EntSigHolder ent = entitySet.get(geo_index);
      if (null != ent) {
        if (null != ent.masterAliasSH) {
          ent = ent.masterAliasSH;
        }
        assoc.put(AssociationPojo.geo_sig_, ent.datasetSignificance);
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.