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

public enum GoldStandardCompleteness extends Enum<GoldStandardCompleteness>
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.
If both are incomplete nothing can be said about <a,c,=,1.0> or <c,b,=,1.0>.
  • Enum Constant Details

    • COMPLETE

      public static final GoldStandardCompleteness COMPLETE
      The GS is complete and thus all correspondences NOT in gold standard are wrong.
    • PARTIAL_SOURCE_COMPLETE_TARGET_COMPLETE

      public static final GoldStandardCompleteness 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 involving a that is not in the reference is incorrect and the same accounts for b.
    • PARTIAL_SOURCE_COMPLETE_TARGET_INCOMPLETE

      public static final GoldStandardCompleteness 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

      public static final GoldStandardCompleteness 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

      public static final GoldStandardCompleteness PARTIAL_SOURCE_INCOMPLETE_TARGET_INCOMPLETE
      Partial GS where correspondences NOT in GS cannot be judged.
  • Constructor Details

    • GoldStandardCompleteness

      private GoldStandardCompleteness()
  • Method Details

    • values

      public static GoldStandardCompleteness[] 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

      public static GoldStandardCompleteness valueOf(String name)
      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 name
      NullPointerException - 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>
      The systems result is interpreted as follows: TP: <a,b,=,1.0> FP: <a,c,=,1.0> Every other/additional involving 'a' would be regarded as FP.
      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>
      The systems result is interpreted as follows: TP: <a,b,=,1.0> FP: <c,b,=,1.0> Every other/additional involving 'b' would be regarded as FP.
      Returns:
      true, if there are no further correct correspondences concerning one target element exept of that/those in the gold standard.