Class Postprocessor<L extends Label>
java.lang.Object
org.variantsync.diffdetective.mining.postprocessing.Postprocessor<L>
Generic Postprocessor for mined patterns.
Patterns are represented as VariationDiffs and might be filtered or transformed.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Postprocessor.Result<L extends Label>
Result type for prostprocessing. -
Field Summary
Modifier and TypeFieldDescriptionprivate final ExplainedFilter<VariationDiff<L>>
private final List<VariationDiffTransformer<L>>
-
Constructor Summary
ModifierConstructorDescriptionprivate
Postprocessor
(List<VariationDiffTransformer<L>> transformers, List<TaggedPredicate<String, ? super VariationDiff<L>>> namedFilters) -
Method Summary
Modifier and TypeMethodDescriptionstatic <L extends Label>
Postprocessor<L>Default()
Creates the default filter to distill semantic patterns from frequent subgraphs.postprocess
(List<VariationDiff<L>> frequentSubgraphs) Performs the postprocessing described by this Postprocessor object on the list of subgraphs.
-
Field Details
-
transformers
-
filters
-
-
Constructor Details
-
Postprocessor
private Postprocessor(List<VariationDiffTransformer<L>> transformers, List<TaggedPredicate<String, ? super VariationDiff<L>>> namedFilters)
-
-
Method Details
-
Default
Creates the default filter to distill semantic patterns from frequent subgraphs. This processor will - filter ill-formed trees - filter trees with less than two edit classes - filter duplicates w.r.t. isomorphism -CutNonEditedSubtrees
- Returns:
- the default postprocessor.
-
postprocess
Performs the postprocessing described by this Postprocessor object on the list of subgraphs. To that end, all filters and transformers will be applied.- Parameters:
frequentSubgraphs
- A list of subgraphs to which to apply the postprocessing.- Returns:
- The processed variation diffs as well as some metadata.
-