Salt
3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
|
This class compares two corpus structures. More...
Inherits org.corpus_tools.salt.util.internal.AbstractDiff< SCorpusGraph >.
Public Member Functions | |
CorpusStructureDiff (SCorpusGraph template, SCorpusGraph other) | |
CorpusStructureDiff (SCorpusGraph template, SCorpusGraph other, DiffOptions options) | |
Public Member Functions inherited from org.corpus_tools.salt.util.internal.AbstractDiff< SCorpusGraph > | |
AbstractDiff (final S template, final S other) | |
Initializes Diff object with the two graphs template and other . More... | |
AbstractDiff (final S template, final S other, DiffOptions optionMap) | |
boolean | isIsomorph () |
Compares the set graphs and returns if they are isomorphic or not. More... | |
Set< Difference > | findDiffs () |
Compares the set graphs and returns if they are isomorphic or not. More... | |
Protected Member Functions | |
boolean | findDiffs (boolean diffsRequested) |
Compares the set graphs and returns if they are isomorphic or not. More... | |
Protected Member Functions inherited from org.corpus_tools.salt.util.internal.AbstractDiff< SCorpusGraph > | |
BiMap< SNode, SNode > | getIsoNodes () |
Return BiMap with isomorphic SNodes key= template, value= other. More... | |
Set< Difference > | getDifferences () |
Returns a list containing all computed differences. More... | |
void | addDifference (final Object templateObject, final Object otherObject, final Object container, final DIFF_TYPES diffType, final Set< Difference > subDiffs) |
Adds a difference to the differences set. More... | |
abstract boolean | findDiffs (boolean diffsRequested) |
boolean | compareIdentifiableElements (final IdentifiableElement template, final IdentifiableElement other, final Set< Difference > subDiffs) |
Checks whether two IdentifiableElement objects are isomorph. More... | |
boolean | compareAnnotationContainers (final SAnnotationContainer template, final SAnnotationContainer other, final Set< Difference > subDiffs) |
Checks whether two SAnnotationContainer objects are isomorph and returns true if this is the case, false otherwise. More... | |
Additional Inherited Members | |
Protected Attributes inherited from org.corpus_tools.salt.util.internal.AbstractDiff< SCorpusGraph > | |
final S | templateObject |
final S | otherObject |
final DiffOptions | options |
Set< Difference > | differences |
boolean | diffsRequested |
if false, only isomorphie is computed, which makes the process faster but does not collect all differences | |
This class compares two corpus structures.
|
protected |
Compares the set graphs and returns if they are isomorphic or not.
If graphs are not isomporphic, this method finds and records all differences and lists them. This means the entire graphs have to be compared and could slow down the computation. If you are only interested in the result and not in the particular differences, use method isIsomorph().
diffsRequested | if false, only isomorphie is computed, which makes the process faster but does not collect all differences |