| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
Event.getTextUnit()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RenumberingUtil.renumberTextUnitCodes(ITextUnit tu,
LocaleId trgLocale)
Renumber the codes in the TextUnit's source container, then align with
the codes in the target.
|
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
AltTranslation.getEntry()
Gets the text unit for this entry.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
GenericAnnotation.addAnnotation(ITextUnit tu,
GenericAnnotation ann)
Adds an annotation to a text unit.
|
static void |
ITSLQIAnnotations.addAnnotations(ITextUnit tu,
ITSLQIAnnotations newSet)
Adds an ITSLQIAnnotations to a text unit.
|
static void |
ITSProvenanceAnnotations.addAnnotations(ITextUnit tu,
ITSProvenanceAnnotations newSet) |
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
EventBuilder.endTextUnit()
|
ITextUnit |
EventBuilder.endTextUnit(GenericSkeleton endMarker)
|
ITextUnit |
EventBuilder.endTextUnit(GenericSkeleton endMarker,
LocaleId locale,
List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)
|
protected ITextUnit |
AbstractLineFilter.getFirstTextUnit() |
ITextUnit |
EventBuilder.peekMostRecentTextUnit()
Peek At the most recently created
TextUnit. |
protected ITextUnit |
EventBuilder.postProcessTextUnit(ITextUnit textUnit)
Do any required post-processing on the TextUnit after endTextUnit is called.
|
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
EventBuilder.postProcessTextUnit(ITextUnit textUnit)
Do any required post-processing on the TextUnit after endTextUnit is called.
|
String |
SubFilterSkeletonWriter.processTextUnit(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
GenericFilterWriter.processTextUnit(ITextUnit resource) |
protected void |
TMXWriter.writeAllPropertiesAsAttibutes(XMLWriter writer,
Set<String> names,
ITextUnit item) |
void |
TMXWriter.writeAlternates(ITextUnit tu,
LocaleId trgLoc)
Writes the entries of an
AltTranslationsAnnotation
annotation(s) of a given text unit to the TMX document. |
void |
TMXWriter.writeItem(ITextUnit tu,
Map<String,String> attributes)
Writes a given text unit.
|
protected void |
TMXWriter.writeResourceLevelProperties(Set<String> names,
ITextUnit item,
TextFragment srcSegment) |
void |
XLIFFWriter.writeTextUnit(ITextUnit tu)
Writes a text unit as a <trans-unit> element.
|
void |
XLIFFWriter.writeTextUnit(ITextUnit tu,
String phaseName)
Writes a text unit as a <trans-unit> element.
|
void |
TMXWriter.writeTUFull(ITextUnit item)
Writes a TextUnit (all targets) with all the properties associated to it.
|
void |
TMXWriter.writeTUFull(ITextUnit item,
LocaleId sourceLocId)
Writes a TextUnit (all targets) with all the properties associated to it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IQuery.leverage(ITextUnit tu)
Leverages a text unit (segmented or not) based on the current settings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IQuery.batchLeverage(List<ITextUnit> tus)
Leverages a batch of text units (segmented or not) based on the current settings.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TextUnit
Basic unit of extraction from a filter and also the resource associated with
the filter event TEXT_UNIT.
|
| Modifier and Type | Method and Description |
|---|---|
static ITextUnit |
TextUnitUtil.buildGenericTU(ITextUnit textUnit,
String name,
TextContainer source,
TextContainer target,
LocaleId locId,
String comment)
Creates a new generic text unit resource or updates the one passed as the parameter.
|
static ITextUnit |
TextUnitUtil.buildGenericTU(String source)
Creates a generic new text unit resource based a given string becoming the source text of the text unit.
|
static ITextUnit |
TextUnitUtil.buildGenericTU(String srcPart,
String skelPart)
Creates a generic new text unit resource based on a given string becoming the source text of the text unit, and a
skeleton string, which gets appended to the new text unit's skeleton.
|
static ITextUnit |
TextUnitUtil.buildGenericTU(TextContainer source)
Creates a new generic text unit resource based on a given text container object becoming the source part of the text
unit.
|
ITextUnit |
ITextUnit.clone()
Clones this TextUnit.
|
ITextUnit |
AlignedSegments.getParent() |
| Modifier and Type | Method and Description |
|---|---|
static void |
TextUnitUtil.addQualifiers(ITextUnit textUnit,
String qualifier)
Adds to the skeleton of a given text unit resource qualifiers (quotation marks etc.) to appear around text.
|
static void |
TextUnitUtil.addQualifiers(ITextUnit textUnit,
String startQualifier,
String endQualifier)
Adds to the skeleton of a given text unit resource qualifiers (quotation marks etc.) to appear around text.
|
static ITextUnit |
TextUnitUtil.buildGenericTU(ITextUnit textUnit,
String name,
TextContainer source,
TextContainer target,
LocaleId locId,
String comment)
Creates a new generic text unit resource or updates the one passed as the parameter.
|
static GenericSkeleton |
TextUnitUtil.convertToSkeleton(ITextUnit textUnit)
Copies source and target text of a given text unit into a newly created skeleton.
|
static GenericSkeleton |
TextUnitUtil.forceSkeleton(ITextUnit tu)
Makes sure that a given text unit contains a skeleton.
|
static <A extends IAnnotation> |
TextUnitUtil.getSourceAnnotation(ITextUnit textUnit,
Class<A> type)
Gets an annotation attached to the source part of a given text unit resource.
|
static String |
TextUnitUtil.getSourceText(ITextUnit textUnit)
Gets the coded text of the first part of the source of a given text unit resource.
|
static String |
TextUnitUtil.getSourceText(ITextUnit textUnit,
boolean removeCodes)
Gets the coded text of the first part of a source part of a given text unit resource.
|
static <A extends IAnnotation> |
TextUnitUtil.getTargetAnnotation(ITextUnit textUnit,
LocaleId locId,
Class<A> type)
Gets an annotation attached to the target part of a given text unit resource in a given locale.
|
static String |
TextUnitUtil.getTargetText(ITextUnit textUnit,
LocaleId locId)
Gets text of the first part of the target of a given text unit resource in the given locale.
|
static boolean |
TextUnitUtil.hasSource(ITextUnit textUnit)
Indicates if a given text unit resource is null, or its source part is null or empty.
|
static boolean |
TextUnitUtil.isApproved(ITextUnit tu,
LocaleId targetLocale) |
static boolean |
TextUnitUtil.isEmpty(ITextUnit textUnit)
Indicates if a given text unit resource is null, or its source part is null or empty.
|
static boolean |
TextUnitUtil.isEmpty(ITextUnit textUnit,
boolean ignoreWS)
Indicates if a given text unit resource is null, or its source part is null or empty.
|
static boolean |
TextUnitUtil.isStandalone(ITextUnit tu) |
static boolean |
TextUnitUtil.needsPreserveWhitespaces(ITextUnit tu) |
static void |
TextUnitUtil.removeCodes(ITextUnit textUnit,
boolean removeTargetCodes)
Removes all inline tags in the source (or optionally the target) text unit resource.
|
static boolean |
TextUnitUtil.removeQualifiers(ITextUnit textUnit,
String qualifier)
Removes from the source part of a given text unit resource qualifiers (quotation marks etc.) around text.
|
static boolean |
TextUnitUtil.removeQualifiers(ITextUnit textUnit,
String startQualifier,
String endQualifier)
Removes from the source part of a given un-segmented text unit resource qualifiers (parenthesis, quotation marks
etc.) around text.
|
static void |
TextUnitUtil.setSourceAnnotation(ITextUnit textUnit,
IAnnotation annotation)
Attaches an annotation to the source part of a given text unit resource.
|
static void |
TextUnitUtil.setSourceText(ITextUnit textUnit,
String text)
Sets the coded text of the un-segmented source of a given text unit resource.
|
static void |
TextUnitUtil.setTargetAnnotation(ITextUnit textUnit,
LocaleId locId,
IAnnotation annotation)
Attaches an annotation to the target part of a given text unit resource in a given language.
|
static void |
TextUnitUtil.setTargetText(ITextUnit textUnit,
LocaleId locId,
String text)
Sets the coded text of the the target part of a given text unit resource in a given language.
|
static void |
TextUnitUtil.simplifyCodes(ITextUnit textUnit,
String rules,
boolean removeLeadingTrailingCodes)
Simplifies all possible tags in the source part of a given text unit resource.
|
static void |
TextUnitUtil.simplifyCodes(ITextUnit textUnit,
String rules,
boolean removeLeadingTrailingCodes,
boolean mergeCodes)
Simplifies all possible tags in the source part of a given text unit resource.
|
static void |
TextUnitUtil.simplifyCodesPostSegmentation(ITextUnit textUnit,
String rules,
boolean removeLeadingTrailingCodes,
boolean mergeCodes)
Simplifies all possible tags in the source part of a given text unit resource.
|
static void |
TextUnitUtil.trimTU(ITextUnit textUnit,
boolean trimLeading,
boolean trimTrailing)
Removes leading and/or trailing whitespaces from the source part of a given text unit resource.
|
static void |
TextUnitUtil.unsegmentTU(ITextUnit tu) |
| Constructor and Description |
|---|
AlignedSegments(ITextUnit parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
GenericSkeleton.addContentPlaceholder(ITextUnit textUnit)
Adds to this skeleton a placeholder for the source content of the resource
to which this skeleton is attached.
|
void |
GenericSkeleton.addContentPlaceholder(ITextUnit textUnit,
LocaleId locId)
Adds to this skeleton a placeholder for the content (in a given locale) of the resource
to which this skeleton is attached.
|
protected String |
GenericSkeletonWriter.getContent(ITextUnit tu,
LocaleId locToUse,
EncoderContext context)
Gets the original content of a given text unit.
|
protected String |
GenericSkeletonWriter.getString(ITextUnit tu,
LocaleId locToUse,
EncoderContext context)
Gets the skeleton and the original content of a given text unit.
|
String |
ISkeletonWriter.processTextUnit(ITextUnit resource)
Processes the TEXT_UNIT event.
|
String |
GenericSkeletonWriter.processTextUnit(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
GoogleMTv2Connector.leverage(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
void |
GoogleMTv2Connector.batchLeverage(List<ITextUnit> tuList) |
| Modifier and Type | Method and Description |
|---|---|
void |
MicrosoftMTConnector.leverage(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
void |
MicrosoftMTConnector.batchLeverage(List<ITextUnit> tuList) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
AbstractMarkupEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractMarkupFilter.postProcessTextUnit(ITextUnit textUnit)
|
protected ITextUnit |
AbstractMarkupEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
WhitespaceAdjustingEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
WhitespaceAdjustingEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
String |
HTML5SkeletonWriter.processTextUnit(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
JsonEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
JsonEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
MarkdownEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
MarkdownEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
String |
MarkdownSkeletonWriter.processTextUnit(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Event> |
BasePlainTextFilter.callSubfilter(ITextUnit parent) |
protected boolean |
BasePlainTextFilter.checkTU(ITextUnit textUnit) |
protected boolean |
BasePlainTextFilter.isEmpty(ITextUnit textUnit) |
protected boolean |
BasePlainTextFilter.processTU(ITextUnit textUnit) |
protected TextProcessingResult |
BasePlainTextFilter.sendAsSkeleton(ITextUnit textUnit) |
protected TextProcessingResult |
BasePlainTextFilter.sendAsSource(ITextUnit textUnit) |
protected TextProcessingResult |
BasePlainTextFilter.sendAsSource(ITextUnit textUnit,
boolean rejectEmpty) |
protected TextProcessingResult |
BasePlainTextFilter.sendAsTarget(ITextUnit target,
ITextUnit source,
LocaleId language) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RTFFilter.getSegment(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
BaseTableFilter.extractCells(List<ITextUnit> cells,
TextContainer lineContainer,
long lineNum)
Splits line into table cells.
|
protected boolean |
BaseTableFilter.processCells(List<ITextUnit> cells,
long lineNum) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
CommaSeparatedValuesFilter.checkTU(ITextUnit textUnit) |
protected boolean |
CommaSeparatedValuesFilter.isEmpty(ITextUnit textUnit) |
String |
CSVSkeletonWriter.processTextUnit(ITextUnit tu) |
protected boolean |
CommaSeparatedValuesFilter.processTU(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
CommaSeparatedValuesFilter.extractCells(List<ITextUnit> cells,
TextContainer lineContainer,
long lineNum) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
FixedWidthColumnsFilter.extractCells(List<ITextUnit> cells,
TextContainer lineContainer,
long lineNum) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
TabSeparatedValuesFilter.extractCells(List<ITextUnit> cells,
TextContainer lineContainer,
long lineNum) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
TEXSkeletonWriter.getContent(ITextUnit tu,
LocaleId locToUse,
EncoderContext context)
Gets the original content of a given text unit.
|
| Modifier and Type | Method and Description |
|---|---|
String |
TTXSkeletonWriter.processTextUnit(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
String |
TXMLSkeletonWriter.processTextUnit(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
void |
FilterEventToXiniTransformer.transformTextUnit(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
static void |
XliffXtmFilterExtension.consolidateProperties(ITextUnit tu,
LocaleId trgLocId)
Consolidates all information for XTM at the segment-level.
|
protected String |
XLIFFSkeletonWriter.getContent(ITextUnit tu,
LocaleId locToUse,
EncoderContext context) |
String |
XLIFFSkeletonWriter.processTextUnit(ITextUnit resource) |
String |
SdlXliffSkeletonWriter.processTextUnit(ITextUnit resource)
Process as normal xliff but search and replace sdl patterns
in skeleton.
|
protected void |
XLIFFITSFilterExtension.readTextUnitITSAttributes(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
String |
IwsXliffSkeletonWriter.processTextUnit(ITextUnit resource)
Update the Idiom WorldServer Metadata if the content has been translated.
|
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
X2ToOkpConverter.convert(net.sf.okapi.lib.xliff2.core.Unit unit) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PropertiesMapper.setTextUnitProperties(ITextUnit okapiTextUnit,
net.sf.okapi.lib.xliff2.core.Unit xliffTextUnit)
Transfers properties from the Okapi Core TextUnit to the XLIFF Toolkit
TextUnit
|
static void |
PropertiesMapper.setTextUnitProperties(net.sf.okapi.lib.xliff2.core.Unit unit,
ITextUnit tu)
Transfers properties from the XLIFF Toolkit TextUnit to the Okapi Core
TextUnit
|
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
YamlEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected ITextUnit |
YamlEventBuilder.postProcessTextUnit(ITextUnit textUnit) |
String |
YamlSkeletonWriter.processTextUnit(ITextUnit resource) |
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
TextUnitMerger.mergeTargets(ITextUnit tuFromSkel,
ITextUnit tuFromTran) |
ITextUnit |
ITextUnitMerger.mergeTargets(ITextUnit tuFromSkeleton,
ITextUnit tuFromTranslation)
Merges the translated text unit to the one from the skeleton.
|
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
TextUnitMerger.mergeTargets(ITextUnit tuFromSkel,
ITextUnit tuFromTran) |
ITextUnit |
ITextUnitMerger.mergeTargets(ITextUnit tuFromSkeleton,
ITextUnit tuFromTranslation)
Merges the translated text unit to the one from the skeleton.
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryManager.leverage(ITextUnit tu)
Leverages a text unit (segmented or not) based on the current settings.
|
void |
BaseConnector.leverage(ITextUnit tu) |
protected void |
BaseConnector.leverageUsingBatchQuery(ITextUnit tu)
Call this method inside the overriding
BaseConnector.leverage(ITextUnit) method
of the derived class, if that class offers a fast BaseConnector.batchQuery(List) method. |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseConnector.batchLeverage(List<ITextUnit> tus)
Slow default implementation using leverage(TextUnit).
|
protected void |
BaseConnector.batchLeverageUsingBatchQuery(List<ITextUnit> tuList)
Call this method inside the overriding
BaseConnector.batchLeverage(List) method
of the derived class, if that class offers a fast BaseConnector.batchQuery(List) method. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractChecker.addAnnotationAndReportIssue(IssueType issueType,
ITextUnit tu,
TextContainer tc,
String segId,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes) |
void |
AbstractChecker.addAnnotationAndReportIssue(IssueType issueType,
ITextUnit tu,
TextContainer tc,
String segId,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes,
String itsType) |
int |
LanguageToolConnector.checkSegment(URI docId,
String subDocId,
Segment srcSeg,
Segment trgSeg,
ITextUnit tu) |
int |
SpaceChecker.checkUnitSpacing(ITextUnit tu,
LocaleId trgLoc)
Checks and fixes white spaces for a given text unit.
|
void |
QualityCheckSession.processTextUnit(ITextUnit textUnit) |
void |
PatternsChecker.processTextUnit(ITextUnit tu) |
void |
LocalizableChecker.processTextUnit(ITextUnit tu) |
void |
LengthChecker.processTextUnit(ITextUnit tu) |
void |
InlineCodesChecker.processTextUnit(ITextUnit tu) |
void |
GeneralChecker.processTextUnit(ITextUnit tu) |
void |
CharactersChecker.processTextUnit(ITextUnit tu) |
abstract void |
AbstractChecker.processTextUnit(ITextUnit tu) |
void |
AbstractChecker.reportIssue(Issue init,
ITextUnit tu,
String srcOri,
String trgOri,
Object extra)
Deprecated.
|
void |
AbstractChecker.reportIssue(IssueType issueType,
ITextUnit tu,
String segId,
String message,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
String srcOri,
String trgOri,
List<Code> codes) |
void |
Issue.setContainers(ITextUnit tu,
LocaleId trgLoc) |
int |
BlacklistChecker.verify(URI docId,
String subDocId,
ITextUnit tu,
Segment segment,
boolean allowBlacklistSub,
boolean isSrc) |
int |
TermChecker.verify(URI docId,
String subDocId,
ITextUnit tu,
Segment srcSeg,
Segment trgSeg) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Cleaner.checkCharacters(ITextUnit tu,
Segment seg,
LocaleId targetLocale)
Wrapper for removing character corruption and detecting unexpected
characters.
|
protected void |
Cleaner.markSegmentForRemoval(ITextUnit tu,
Segment seg,
LocaleId targetLocale)
Effectively marks the segment for removal by emptying the content for the
given target.
|
protected void |
Cleaner.matchRegexExpressions(ITextUnit tu,
Segment seg,
LocaleId targetLocale)
Marks segments for removal that contain text which match given regular
expressions.
|
protected void |
Cleaner.normalizeMarks(ITextUnit tu,
Segment seg,
LocaleId targetLocale) |
protected void |
Cleaner.normalizeQuotation(ITextUnit tu,
Segment seg,
LocaleId targetLocale)
Converts all quotation marks (curly or language specific) to straight
quotes.
|
protected void |
Cleaner.normalizeWhitespace(ITextUnit tu,
Segment seg,
LocaleId targetLocale)
Converts whitespace ({tab}, {space}, {CR}, {LF}) to single space.
|
protected boolean |
Cleaner.pruneTextUnit(ITextUnit tu,
LocaleId targetLocale)
Removes segments from the text unit marked as not containing useful
information.
|
boolean |
Cleaner.run(ITextUnit tu,
LocaleId targetLocale)
Performs the cleaning of the text unit according to user selected
options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodesRemover.processTextUnit(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExtractionVerificationUtil.compareTextUnits(ITextUnit tu1,
ITextUnit tu2)
Compare two ITextUnits
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ITextUnitFilter.accept(ITextUnit tu)
Tests if a given text unit should be processed by a filtering pipeline step.
|
| Modifier and Type | Method and Description |
|---|---|
int |
TextUnitComparator.compare(ITextUnit oldTextUnit,
ITextUnit newTextUnit) |
int |
FuzzyTextUnitComparator.compare(ITextUnit oldTextUnit,
ITextUnit newTextUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
EnrycherClient.parseHTML(String htmlResult,
LinkedList<ITextUnit> list) |
void |
EnrycherClient.processList(LinkedList<ITextUnit> list)
Call the Enrycher service on a list of text units.
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.okapi.steps.paraaligner.AlignedParagraphs |
ParagraphAligner.align(List<ITextUnit> sourceParagraphs,
List<ITextUnit> targetParagraphs,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
net.sf.okapi.steps.paraaligner.AlignedParagraphs |
ParagraphAligner.align(List<ITextUnit> sourceParagraphs,
List<ITextUnit> targetParagraphs,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
| Constructor and Description |
|---|
ParagraphAligner(List<AlignmentScorer<ITextUnit>> scorerList) |
| Modifier and Type | Method and Description |
|---|---|
long |
WordCounter.getWordCount(ITextUnit tu) |
long |
WordCounter.getWordCount(ITextUnit tu,
LocaleId trgId) |
protected void |
BasePackageWriter.writeTMXEntries(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
protected net.sf.okapi.lib.xliff2.core.Unit |
XLIFF2TerminologyPackageWriter.toXLIFF2Unit(ITextUnit unit) |
protected net.sf.okapi.lib.xliff2.core.Unit |
XLIFF2PackageWriter.toXLIFF2Unit(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
SentenceAligner.align(ITextUnit sourceParagraph,
ITextUnit targetParagraph,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
ITextUnit |
SentenceAligner.align(ITextUnit bilingualParagraph,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
SentenceAligner.align(ITextUnit sourceParagraph,
ITextUnit targetParagraph,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
ITextUnit |
SentenceAligner.align(ITextUnit bilingualParagraph,
LocaleId srcLocale,
LocaleId trgLocale,
boolean outputOneTOneMatchesOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleTermExtractor.processTextUnit(ITextUnit tu)
Processes a text unit for term extraction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ITerminologyQuery.leverage(ITextUnit tu) |
void |
BaseTerminologyConnector.leverage(ITextUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
static Tokens |
Tokenizer.tokenize(ITextUnit textUnit,
LocaleId language,
String... tokenNames) |
| Modifier and Type | Method and Description |
|---|---|
ITextUnit |
WhitespaceCorrector.correctWhitespace(ITextUnit tu) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WhitespaceCorrector.addTrailingWhitespace(ITextUnit textUnit) |
ITextUnit |
WhitespaceCorrector.correctWhitespace(ITextUnit tu) |
protected void |
WhitespaceCorrector.removeTrailingWhitespace(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
static long |
WordCounter.count(ITextUnit textUnit,
LocaleId language)
Counts words in the source part of a given text unit.
|
static long |
WordCounter.getCount(ITextUnit tu)
Returns the word count information stored by WordCountStep in the source part of a given text unit.
|
static long |
CharacterCounter.getCount(ITextUnit tu)
Returns the character count information stored by CharacterCountStep in the source part of a given text unit.
|
static long |
WordCounter.getCount(ITextUnit tu,
int segIndex)
Returns the word count information stored by WordCountStep in a given segment of the source part of a given text unit.
|
static long |
CharacterCounter.getCount(ITextUnit tu,
int segIndex)
Returns the character count information stored by CharacterCountStep in a given segment of the source part of a given text unit.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
GMXProtectedWordCountStep.countInTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
TokenCountStep.countInTextUnit(ITextUnit textUnit) |
protected abstract long |
BaseCountStep.countInTextUnit(ITextUnit textUnit) |
protected long |
AltAnnotationBasedCountStep.countInTextUnit(ITextUnit textUnit) |
| Modifier and Type | Method and Description |
|---|---|
static ITextUnit |
PensieveUtil.convertToTextUnit(TranslationUnit tu)
Converts a TranslationUnit to a TextUnit
|
| Modifier and Type | Method and Description |
|---|---|
static TranslationUnit |
PensieveUtil.convertToTranslationUnit(LocaleId sourceLoc,
LocaleId targetLoc,
ITextUnit textUnit)
Converts an un-segmented TextUnit into a TranslationUnit.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Database.addEntry(ITextUnit tu,
String grpName,
String fileName) |
Copyright © 2021. All rights reserved.