Enum GoldStandardCompleteness
java.lang.Object
java.lang.Enum<GoldStandardCompleteness>
de.uni_mannheim.informatik.dws.melt.matching_data.GoldStandardCompleteness
- All Implemented Interfaces:
Serializable
,Comparable<GoldStandardCompleteness>
,java.lang.constant.Constable
Defines how complete a gold standard is.
It could be complete (all correspondences *NOT* in gold standard are wrong).
It could be partial (cannot say something about correspondences not in GS).
For a partial GS there are more sub cases.
Assume <a,b,=,1.0> in the GS.
- Then system correspondence <a,c,=,1.0> is assumed to be wrong if source is complete.
- Then system correspondence <c,b,=,1.0> is assumed to be wrong if target is complete.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe GS is complete and thus all correspondences NOT in gold standard are wrong.The gold standard is not complete, but the matched elements are.Every correspondence involving an element of the complete side that is not available in the reference can be regarded as wrong.Every correspondence involving an element of the complete side that is not available in the reference can be regarded as wrong.Partial GS where correspondences NOT in GS cannot be judged. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the GS is complete and thus all correspondences *NOT* in gold standard are wrong.boolean
If the source is complete, there are no further correct correspondences concerning one source element except of that/those in the gold standard.boolean
If the target is complete, there are no further correct correspondences concerning one target element except of that/those in the gold standard.static GoldStandardCompleteness
Returns the enum constant of this type with the specified name.static GoldStandardCompleteness[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPLETE
The GS is complete and thus all correspondences NOT in gold standard are wrong. -
PARTIAL_SOURCE_COMPLETE_TARGET_COMPLETE
The gold standard is not complete, but the matched elements are. For example if there is a correspondence<a, b, =>
, each match involvinga
that is not in the reference is incorrect and the same accounts forb
. -
PARTIAL_SOURCE_COMPLETE_TARGET_INCOMPLETE
Every correspondence involving an element of the complete side that is not available in the reference can be regarded as wrong. -
PARTIAL_SOURCE_INCOMPLETE_TARGET_COMPLETE
Every correspondence involving an element of the complete side that is not available in the reference can be regarded as wrong. -
PARTIAL_SOURCE_INCOMPLETE_TARGET_INCOMPLETE
Partial GS where correspondences NOT in GS cannot be judged.
-
-
Constructor Details
-
GoldStandardCompleteness
private GoldStandardCompleteness()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isGoldStandardComplete
public boolean isGoldStandardComplete()Returns true if the GS is complete and thus all correspondences *NOT* in gold standard are wrong.- Returns:
- true if the GS is complete and thus all correspondences *NOT* in gold standard are wrong
-
isSourceComplete
public boolean isSourceComplete()If the source is complete, there are no further correct correspondences concerning one source element except of that/those in the gold standard. Example:- Alignment: <a,b,=,1.0>
- System: <a,b,=,1.0>, <a,c,=,1.0>
- Returns:
- true, if there are no further correct correspondences concerning one source element except of that/those in the gold standard
-
isTargetComplete
public boolean isTargetComplete()If the target is complete, there are no further correct correspondences concerning one target element except of that/those in the gold standard. Example:- Alignment: <a,b,=,1.0>
- System: <a,b,=,1.0>, <c, b,=,1.0>
- Returns:
- true, if there are no further correct correspondences concerning one target element exept of that/those in the gold standard.
-