Package net.sf.okapi.common.query
Enum MatchType
- java.lang.Object
-
- java.lang.Enum<MatchType>
-
- net.sf.okapi.common.query.MatchType
-
- All Implemented Interfaces:
Serializable,Comparable<MatchType>
public enum MatchType extends Enum<MatchType>
Enumeration of the different match types possible for an alternate translation entry.Matches are in ranked order from highest to lowest. Please maintain ranked order when adding new entries.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDfinal, approved human translation.CONCORDANCETM concordance or phrase match (usually a word or term only)EXACTMatches text and codes exactly.EXACT_DOCUMENT_CONTEXTEXACT and comes from a repeated segment in the same document.EXACT_LOCAL_CONTEXTEXACT and a small number of segments before and/or after.EXACT_PREVIOUS_VERSIONEXACT and comes from the preceding version of the same document (i.e., if v4 is leveraged this match must come from v3, not v2 or v1!!).EXACT_REPAIREDMatches text and codes exactly, but only after the result of some automated repair (i.e., number replacement, code repair, capitalization, punctuation etc..)EXACT_STRUCTURALEXACT and the structural type of the segment (title, paragraph, list element etc..)EXACT_TEXT_ONLYMatches text exactly, but there is a difference in one or more codes and/or whitespaceEXACT_TEXT_ONLY_PREVIOUS_VERSIONEXACT_TEXT_ONLY and comes from a previous version of the same documentEXACT_TEXT_ONLY_UNIQUE_IDEXACT_TEXT_ONLY and matches with a unique idEXACT_UNIQUE_IDEXACT and matches a unique idFUZZYMatches both text and/or codes partially.FUZZY_PREVIOUS_VERSIONFUZZY and comes from a previous version of the same documentFUZZY_REPAIREDMatches both text and/or codes partially and some automated repair (i.e., number replacement, code repair, capitalization, punctuation etc..) was applied to the targetFUZZY_UNIQUE_IDMatches FUZZY with a unique idHUMAN_RECOMMENDEDImproved translation edited by a human.MTIndicates a translation coming from an MT engine.PHRASE_ASSEMBLEDMatches assembled from phrases in the TM or other resource.UKNOWNUnknown match type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatchTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPTED
public static final MatchType ACCEPTED
final, approved human translation.
-
HUMAN_RECOMMENDED
public static final MatchType HUMAN_RECOMMENDED
Improved translation edited by a human.
-
EXACT_UNIQUE_ID
public static final MatchType EXACT_UNIQUE_ID
EXACT and matches a unique id
-
EXACT_PREVIOUS_VERSION
public static final MatchType EXACT_PREVIOUS_VERSION
EXACT and comes from the preceding version of the same document (i.e., if v4 is leveraged this match must come from v3, not v2 or v1!!).
-
EXACT_LOCAL_CONTEXT
public static final MatchType EXACT_LOCAL_CONTEXT
EXACT and a small number of segments before and/or after.
-
EXACT_DOCUMENT_CONTEXT
public static final MatchType EXACT_DOCUMENT_CONTEXT
EXACT and comes from a repeated segment in the same document.
-
EXACT_STRUCTURAL
public static final MatchType EXACT_STRUCTURAL
EXACT and the structural type of the segment (title, paragraph, list element etc..)
-
EXACT
public static final MatchType EXACT
Matches text and codes exactly.
-
EXACT_TEXT_ONLY_UNIQUE_ID
public static final MatchType EXACT_TEXT_ONLY_UNIQUE_ID
EXACT_TEXT_ONLY and matches with a unique id
-
EXACT_TEXT_ONLY_PREVIOUS_VERSION
public static final MatchType EXACT_TEXT_ONLY_PREVIOUS_VERSION
EXACT_TEXT_ONLY and comes from a previous version of the same document
-
EXACT_TEXT_ONLY
public static final MatchType EXACT_TEXT_ONLY
Matches text exactly, but there is a difference in one or more codes and/or whitespace
-
EXACT_REPAIRED
public static final MatchType EXACT_REPAIRED
Matches text and codes exactly, but only after the result of some automated repair (i.e., number replacement, code repair, capitalization, punctuation etc..)
-
FUZZY_UNIQUE_ID
public static final MatchType FUZZY_UNIQUE_ID
Matches FUZZY with a unique id
-
FUZZY_PREVIOUS_VERSION
public static final MatchType FUZZY_PREVIOUS_VERSION
FUZZY and comes from a previous version of the same document
-
FUZZY
public static final MatchType FUZZY
Matches both text and/or codes partially.
-
FUZZY_REPAIRED
public static final MatchType FUZZY_REPAIRED
Matches both text and/or codes partially and some automated repair (i.e., number replacement, code repair, capitalization, punctuation etc..) was applied to the target
-
PHRASE_ASSEMBLED
public static final MatchType PHRASE_ASSEMBLED
Matches assembled from phrases in the TM or other resource.
-
MT
public static final MatchType MT
Indicates a translation coming from an MT engine.
-
CONCORDANCE
public static final MatchType CONCORDANCE
TM concordance or phrase match (usually a word or term only)
-
UKNOWN
public static final MatchType UKNOWN
Unknown match type. Used as default value only - should always be updated to a known match type. A UNKOWN type always sorts below all other matches. Make sure this type is the last in the list.
-
-
Method Detail
-
values
public static MatchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatchType c : MatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchType 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 nameNullPointerException- if the argument is null
-
-