edu.isi.karma.modeling.alignment.Alignment.updateAlignment()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.updateAlignment()方法的一些代码示例,展示了Alignment.updateAlignment()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.updateAlignment()方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称:Alignment
方法名:updateAlignment

Alignment.updateAlignment介绍

暂无

代码示例

代码示例来源:origin: usc-isi-i2/Web-Karma

private void learnFromKnownSemanticModels() {
    
    List<Node> steinerNodes = this.computeSteinerNodes();
    if (steinerNodes == null || steinerNodes.isEmpty()) {
      return;
    }
    
    ModelLearner modelLearner = new ModelLearner(this.graphBuilder, steinerNodes);

    SemanticModel model = modelLearner.getModel();
    if (model == null) {
      logger.error("could not learn any model for this source!");
      if (this.steinerTree == null)
      {
        this.steinerTree =
            new DirectedWeightedMultigraph<>(LabeledLink.class);
      }
      this.addForcedNodes();
      this.addForcedLinks(); //add new semantic type to the tree
//            this.removeDeletedLinks();
      this.root = TreePostProcess.selectRoot(GraphUtil.asDefaultGraph(this.steinerTree));
      return ;
    }

    this.updateAlignment(model, null);
  }

代码示例来源:origin: usc-isi-i2/Web-Karma

alignment.updateAlignment(model, semanticTypes);
logger.info(GraphUtil.labeledGraphToString(alignment.getSteinerTree()));

相关文章