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 defines an option map to customize the isomorphie check of two graphs. More...
Inherits Hashtable< String, Boolean >.
Classes | |
class | Builder |
Public Member Functions | |
DiffOptions () | |
Creates a new option map, to compute the differences in an isomorphic comparison of graphs. More... | |
DiffOptions | setOption (String key, Boolean value) |
Adds an option and returns this option object. More... | |
Static Public Attributes | |
static final String | OPTION_IGNORE_DOCUMENTS = "ignoreDocuments" |
When true, documents won't be compared when comparing corpus structures. | |
static final String | OPTION_IGNORE_FEATURES = "ignoreFeatures" |
When true, differences in SFeature have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_ANNOTATIONS = "ignoreAnnotations" |
When true, differences in SAnnotation have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_META_ANNOTATIONS = "ignoreMetaAnnotstaions" |
When true, differences in SMetaAnnotation have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_PROCESSING_ANNOTATIONS = "ignoreProcessingAnnotations" |
When true, differences in SProcessingAnnotation have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_ID = "ignoreId" |
When true, differences in id have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_NAME = "ignoreName" |
When true, differences in name have no influence on isomorphie and will not produce any differences. | |
static final String | OPTION_IGNORE_CORPUS_STRUCTURE_NAME = "ignoreCorpusStructureName" |
When true, differences in names of elements in corpus structure are ignored. | |
static final String | OPTION_IGNORE_LAYER = "ignoreLayer" |
When true, layers will not be checked when computing isomorphie and differences. | |
This class defines an option map to customize the isomorphie check of two graphs.
For instance you can suppress the check for ids of nodes, relations etc. during the isomorphie comparison. To supress the id check set DiffOptions#OPTION_IGNORE_ID to true:
put(OPTION_IGNORE_ID, true);
The default settings are specified in DiffOptions#Diff_Options().
org.corpus_tools.salt.util.DiffOptions.DiffOptions | ( | ) |
Creates a new option map, to compute the differences in an isomorphic comparison of graphs.
The default settings are:
DiffOptions org.corpus_tools.salt.util.DiffOptions.setOption | ( | String | key, |
Boolean | value | ||
) |
Adds an option and returns this option object.
If the key or value is null, nothing will be done.