@Override public Set<ExtendedNode> getInvolvedNodesInTree() { return getMapLhsToTree().rightSet().getMutableSetCopy(); }
/** * Assuming this is called from the Swing thread (I.e. in the context of {@link javax.swing.SwingUtilities#invokeLater(Runnable)}) * * @param underLyingSystem * @param useF1Classifier * @throws TeEngineMlException */ public void setUnderlyingSystem(SingleComponentUnderlyingSystem underLyingSystem, Boolean useF1Classifier) throws TeEngineMlException { this.underLyingSystem = underLyingSystem; Set<String> allowedDatasets = this.underLyingSystem.getAllowedDatasetNames().getMutableSetCopy(); if (allowedDatasets.size()>0) { cpe.getComboBoxDatasetNames().setModel(new DefaultComboBoxModel<String>(Utils.collectionToArray(allowedDatasets, new String[0]))); cpe.setDatasetNamesAllow(true); } else { cpe.setDatasetNamesAllow(false); } this.useF1Classifier = useF1Classifier; if (this.useF1Classifier!=null){if (this.useF1Classifier.booleanValue()) { cpe.setStatusBarClassifierType(VisualTracingTool.STATUS_BAR_CLASSIFIER_TYPE_F1_OPTIMIZED); cpe.updateStatusBarLabel(); }} }
Set<WikiExtractionType> unitedExtractionTypes = rule.getInfo().getExtractionTypes().getMutableSetCopy(); unitedExtractionTypes.addAll(otherRule.getInfo().getExtractionTypes().getMutableSetCopy()); double highestCoocurrenceScore = Math.max(rule.getInfo().getCoocurenceScore(), otherRule.getInfo().getCoocurenceScore()); WikiRuleInfo newWikiInfo = new WikiRuleInfo( unitedExtractionTypes, highestCoocurrenceScore);
Set<WikiExtractionType> unitedExtractionTypes = rule.getInfo().getExtractionTypes().getMutableSetCopy(); unitedExtractionTypes.addAll(otherRule.getInfo().getExtractionTypes().getMutableSetCopy()); double highestCoocurrenceScore = Math.max(rule.getInfo().getCoocurenceScore(), otherRule.getInfo().getCoocurenceScore()); WikiRuleInfo newWikiInfo = new WikiRuleInfo( unitedExtractionTypes, highestCoocurrenceScore);
if (Constants.DIRT_LIKE_QUERY_RULE_ALSO_BY_HYPOTHESIS_TEMPLATES) notYetHyothesisTemplates = hypothesisTemplates.getMutableSetCopy();
Set<EdgeAndNode<CCNode, CCEdgeInfo>> successorsEdges = graph.getDirectSuccessorsOf(graphNode).getMutableSetCopy();