Package org.omegat.core.matching
Class NearString
java.lang.Object
org.omegat.core.matching.NearString
Class to hold a single fuzzy match.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNearString(EntryKey key, String source, String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, String projName, String creator, long creationDate, String changer, long changedDate, List<TMXProp> props) Deprecated.NearString(EntryKey key, ITMXEntry entry, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, NearString.Scores scores, byte[] nearData, String projName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic NearStringmerge(NearString ns, EntryKey key, String source, String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, String projName, String creator, long creationDate, String changer, long changedDate, List<TMXProp> props) Deprecated.static NearStringmerge(NearString ns, EntryKey key, ITMXEntry entry, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, NearString.Scores scores, byte[] nearData, String projName) Merge NearString object.toString()
-
Field Details
-
key
-
source
-
translation
-
comesFrom
-
fuzzyMark
public boolean fuzzyMark -
scores
-
projs
-
attr
public byte[] attrmatching attributes of near strEntry -
props
-
creator
-
creationDate
public final long creationDate -
changer
-
changedDate
public final long changedDate
-
-
Constructor Details
-
NearString
public NearString(EntryKey key, ITMXEntry entry, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, NearString.Scores scores, byte[] nearData, String projName) Constructor.- Parameters:
key- entry keyentry- the TMX entry that has source text, translation text, creator, creation date, changer, change date and properties.comesFrom- originfuzzyMark- fuzzy or notscores- score valuesnearData- similarity data.projName- project name.
-
NearString
@Deprecated public NearString(EntryKey key, String source, String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, String projName, String creator, long creationDate, String changer, long changedDate, List<TMXProp> props) Deprecated.Constructor, backward compatible.- Parameters:
key- entry keysource- source texttranslation- translation textcomesFrom- originfuzzyMark- fuzzy or notnearScore-nearScoreNoStem-adjustedScore-nearData- similarity data.projName- project name.creator- creator namecreationDate- creation datechanger- changer namechangedDate- changer dateprops- properties of entry.
-
-
Method Details
-
merge
public static NearString merge(NearString ns, EntryKey key, ITMXEntry entry, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, NearString.Scores scores, byte[] nearData, String projName) Merge NearString object.- Parameters:
ns- NearString to merge.key- entry key.entry- TMXEntry entrycomesFrom- originfuzzyMark- fuzzy or notscores- similarity scorenearData- similarity dataprojName- project name- Returns:
- NearString merged.
-
merge
@Deprecated public static NearString merge(NearString ns, EntryKey key, String source, String translation, NearString.MATCH_SOURCE comesFrom, boolean fuzzyMark, int nearScore, int nearScoreNoStem, int adjustedScore, byte[] nearData, String projName, String creator, long creationDate, String changer, long changedDate, List<TMXProp> props) Deprecated. -
toString
-