public class TermChecker extends Object
| Constructor and Description |
|---|
TermChecker() |
| Modifier and Type | Method and Description |
|---|---|
static List<TermHit> |
getExistingTargetStrings(TextFragment frag,
List<TermHit> sourceHits,
boolean betweenCodes) |
static List<TermHit> |
getExistingTargetTerms(TextFragment frag,
List<TermHit> sourceHits)
Get a list of existing target term in a given fragment based on a list of
TermHit object for the source.
|
List<Issue> |
getIssues() |
void |
initialize(SimpleTB termAccess,
LocaleId srcLoc,
LocaleId trgLoc,
boolean stringSearch,
boolean betweenCodes) |
static List<TermHit> |
removeMatches(List<TermHit> srcList,
List<TermHit> trgList)
Removes from both lists all the entries that are found in the source list and have their
corresponding entry in the target list.
|
int |
verify(URI docId,
String subDocId,
ITextUnit tu,
Segment srcSeg,
Segment trgSeg) |
public void initialize(SimpleTB termAccess, LocaleId srcLoc, LocaleId trgLoc, boolean stringSearch, boolean betweenCodes)
public static List<TermHit> getExistingTargetTerms(TextFragment frag, List<TermHit> sourceHits)
frag - the fragment to process.sourceHits - the list of TermHit objects found in the source.public static List<TermHit> getExistingTargetStrings(TextFragment frag, List<TermHit> sourceHits, boolean betweenCodes)
public static List<TermHit> removeMatches(List<TermHit> srcList, List<TermHit> trgList)
Assuming the source list comes from a source text and the target list from its corresponding translation: The resulting source list indicates the terms that are likely to have not been translated according the terminology, or have a different meaning as the term listed in the source list.
srcList - the source list.trgList - the target list.Copyright © 2021. All rights reserved.