| Package | Description |
|---|---|
| net.sf.okapi.common.annotation |
Classes to implement and manage annotations.
|
| net.sf.okapi.common.filterwriter |
Interfaces and classes to allow the output of a document in its original
format.
|
| net.sf.okapi.common.query |
Helper classes for the translation resources connectors.
|
| net.sf.okapi.common.resource |
Interfaces and classes that represent the parsed resources attached to the
events sent by a filter.
|
| Modifier and Type | Method and Description |
|---|---|
AltTranslation |
AltTranslationsAnnotation.add(LocaleId sourceLocId,
LocaleId targetLocId,
TextFragment originalSource,
TextFragment alternateSource,
TextFragment alternateTarget,
MatchType type,
int combinedScore,
String origin)
Adds a new entry to the list of alternate translations.
|
AltTranslation |
AltTranslationsAnnotation.add(LocaleId sourceLocId,
LocaleId targetLocId,
TextFragment originalSource,
TextFragment alternateSource,
TextFragment alternateTarget,
MatchType type,
int combinedScore,
String origin,
int fuzzyScore,
int qualityScore)
Adds a new entry to the list of alternate translations.
|
AltTranslation |
AltTranslationsAnnotation.getFirst()
Gets the first entry in the list of alternate translations.
|
AltTranslation |
AltTranslationsAnnotation.getLast()
Gets the last entry in the list of alternate translations.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<AltTranslation> |
AltTranslationsAnnotation.iterator()
Creates a new iterator for the entries in this annotations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AltTranslationsAnnotation.add(AltTranslation alt)
Adds an existing
AltTranslation object to this annotation. |
int |
AltTranslation.compareTo(AltTranslation other)
This method implements a three way sort on (1) AltTranslationType (2) Score (3)
source string match.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TMXWriter.writeAlternate(AltTranslation alt,
TextFragment srcOriginal)
Writes the data of an
AltTranslation to this TMX output. |
| Modifier and Type | Method and Description |
|---|---|
AltTranslation |
QueryResult.toAltTranslation(TextFragment originalSource,
LocaleId sourceLocId,
LocaleId targetLocId)
Convert a QueryResult to an
AltTranslation |
| Modifier and Type | Method and Description |
|---|---|
static AltTranslationsAnnotation |
TextUnitUtil.addAltTranslation(Segment seg,
AltTranslation alt)
Adds an
AltTranslation object to a given Segment. |
static AltTranslationsAnnotation |
TextUnitUtil.addAltTranslation(TextContainer targetContainer,
AltTranslation alt)
Adds an
AltTranslation object to a given TextContainer. |
Copyright © 2021. All rights reserved.