本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.updateAlignment()
方法的一些代码示例,展示了Alignment.updateAlignment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.updateAlignment()
方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称: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()));
内容来源于网络,如有侵权,请联系作者删除!