Uses of Interface
net.sf.okapi.common.resource.ITextUnit
-
-
Uses of ITextUnit in net.sf.okapi.common
Methods in net.sf.okapi.common that return ITextUnit Modifier and Type Method Description ITextUnitEvent. getTextUnit()Methods in net.sf.okapi.common with parameters of type ITextUnit Modifier and Type Method Description static voidRenumberingUtil. renumberTextUnitCodes(ITextUnit tu, LocaleId trgLocale)Renumber the codes in the TextUnit's source container, then align with the codes in the target. -
Uses of ITextUnit in net.sf.okapi.common.annotation
Methods in net.sf.okapi.common.annotation that return ITextUnit Modifier and Type Method Description ITextUnitAltTranslation. getEntry()Gets the text unit for this entry.ITextUnitAltTranslation. getTextUnit()Get theAltTranslationMethods in net.sf.okapi.common.annotation with parameters of type ITextUnit Modifier and Type Method Description static voidGenericAnnotation. addAnnotation(ITextUnit tu, GenericAnnotation ann)Adds an annotation to a text unit.static voidITSLQIAnnotations. addAnnotations(ITextUnit tu, ITSLQIAnnotations newSet)Adds an ITSLQIAnnotations to a text unit.static voidITSProvenanceAnnotations. addAnnotations(ITextUnit tu, ITSProvenanceAnnotations newSet)Constructors in net.sf.okapi.common.annotation with parameters of type ITextUnit Constructor Description AltTranslation(LocaleId sourceLocId, LocaleId targetLocId, ITextUnit altTu, MatchType type, int combinedScore, String origin)Creates a new AltTranslation object. -
Uses of ITextUnit in net.sf.okapi.common.filters
Methods in net.sf.okapi.common.filters that return ITextUnit Modifier and Type Method Description ITextUnitEventBuilder. endTextUnit()ITextUnitEventBuilder. endTextUnit(GenericSkeleton endMarker)ITextUnitEventBuilder. endTextUnit(GenericSkeleton endMarker, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)protected ITextUnitAbstractLineFilter. getFirstTextUnit()ITextUnitEventBuilder. peekMostRecentTextUnit()Peek At the most recently createdTextUnit.protected ITextUnitEventBuilder. postProcessTextUnit(ITextUnit textUnit)Do any required post-processing on the TextUnit after endTextUnit is called.Methods in net.sf.okapi.common.filters with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitEventBuilder. postProcessTextUnit(ITextUnit textUnit)Do any required post-processing on the TextUnit after endTextUnit is called.StringSubFilterSkeletonWriter. processTextUnit(ITextUnit resource) -
Uses of ITextUnit in net.sf.okapi.common.filterwriter
Methods in net.sf.okapi.common.filterwriter with parameters of type ITextUnit Modifier and Type Method Description protected voidGenericFilterWriter. processTextUnit(ITextUnit resource)protected voidTMXWriter. writeAllPropertiesAsAttibutes(XMLWriter writer, Set<String> names, ITextUnit item)voidTMXWriter. writeAlternates(ITextUnit tu, LocaleId trgLoc)Writes the entries of anAltTranslationsAnnotationannotation(s) of a given text unit to the TMX document.voidTMXWriter. writeItem(ITextUnit tu, Map<String,String> attributes)Writes a given text unit.protected voidTMXWriter. writeResourceLevelProperties(Set<String> names, ITextUnit item, TextFragment srcSegment)voidXLIFFWriter. writeTextUnit(ITextUnit tu)Writes a text unit as a <trans-unit> element.voidXLIFFWriter. writeTextUnit(ITextUnit tu, String phaseName)Writes a text unit as a <trans-unit> element.voidTMXWriter. writeTUFull(ITextUnit item)Writes a TextUnit (all targets) with all the properties associated to it.voidTMXWriter. writeTUFull(ITextUnit item, LocaleId sourceLocId)Writes a TextUnit (all targets) with all the properties associated to it. -
Uses of ITextUnit in net.sf.okapi.common.query
Methods in net.sf.okapi.common.query with parameters of type ITextUnit Modifier and Type Method Description voidIQuery. leverage(ITextUnit tu)Leverages a text unit (segmented or not) based on the current settings.Method parameters in net.sf.okapi.common.query with type arguments of type ITextUnit Modifier and Type Method Description voidIQuery. batchLeverage(List<ITextUnit> tus)Leverages a batch of text units (segmented or not) based on the current settings. -
Uses of ITextUnit in net.sf.okapi.common.resource
Classes in net.sf.okapi.common.resource that implement ITextUnit Modifier and Type Class Description classTextUnitBasic unit of extraction from a filter and also the resource associated with the filter event TEXT_UNIT.Methods in net.sf.okapi.common.resource that return ITextUnit Modifier and Type Method Description static ITextUnitTextUnitUtil. buildGenericTU(String source)Creates a generic new text unit resource based a given string becoming the source text of the text unit.static ITextUnitTextUnitUtil. 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 ITextUnitTextUnitUtil. 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 ITextUnitTextUnitUtil. 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.ITextUnitITextUnit. clone()Clones this TextUnit.ITextUnitAlignedSegments. getParent()Methods in net.sf.okapi.common.resource with parameters of type ITextUnit Modifier and Type Method Description static voidTextUnitUtil. addQualifiers(ITextUnit textUnit, String qualifier)Adds to the skeleton of a given text unit resource qualifiers (quotation marks etc.) to appear around text.static voidTextUnitUtil. 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 ITextUnitTextUnitUtil. 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 GenericSkeletonTextUnitUtil. convertToSkeleton(ITextUnit textUnit)Copies source and target text of a given text unit into a newly created skeleton.static GenericSkeletonTextUnitUtil. forceSkeleton(ITextUnit tu)Makes sure that a given text unit contains a skeleton.static <A extends IAnnotation>
ATextUnitUtil. getSourceAnnotation(ITextUnit textUnit, Class<A> type)Gets an annotation attached to the source part of a given text unit resource.static StringTextUnitUtil. getSourceText(ITextUnit textUnit)Gets the coded text of the first part of the source of a given text unit resource.static StringTextUnitUtil. 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>
ATextUnitUtil. 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 StringTextUnitUtil. 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 booleanTextUnitUtil. hasSource(ITextUnit textUnit)Indicates if a given text unit resource is null, or its source part is null or empty.static booleanTextUnitUtil. isApproved(ITextUnit tu, LocaleId targetLocale)static booleanTextUnitUtil. isEmpty(ITextUnit textUnit)Indicates if a given text unit resource is null, or its source part is null or empty.static booleanTextUnitUtil. isEmpty(ITextUnit textUnit, boolean ignoreWS)Indicates if a given text unit resource is null, or its source part is null or empty.static booleanTextUnitUtil. isStandalone(ITextUnit tu)static booleanTextUnitUtil. needsPreserveWhitespaces(ITextUnit tu)static voidTextUnitUtil. removeCodes(ITextUnit textUnit, boolean removeTargetCodes)Removes all inline tags in the source (or optionally the target) text unit resource.static booleanTextUnitUtil. removeQualifiers(ITextUnit textUnit, String qualifier)Removes from the source part of a given text unit resource qualifiers (quotation marks etc.) around text.static booleanTextUnitUtil. 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 voidTextUnitUtil. setSourceAnnotation(ITextUnit textUnit, IAnnotation annotation)Attaches an annotation to the source part of a given text unit resource.static voidTextUnitUtil. setSourceText(ITextUnit textUnit, String text)Sets the coded text of the un-segmented source of a given text unit resource.static voidTextUnitUtil. 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 voidTextUnitUtil. 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 voidTextUnitUtil. simplifyCodes(ITextUnit textUnit, String rules, boolean removeLeadingTrailingCodes)Simplifies all possible tags in the source part of a given text unit resource.static voidTextUnitUtil. simplifyCodes(ITextUnit textUnit, String rules, boolean removeLeadingTrailingCodes, boolean mergeCodes)Simplifies all possible tags in the source part of a given text unit resource.static voidTextUnitUtil. simplifyCodesPostSegmentation(ITextUnit textUnit, String rules, boolean removeLeadingTrailingCodes, boolean mergeCodes)Simplifies all possible tags in the source part of a given text unit resource.static voidTextUnitUtil. trimTU(ITextUnit textUnit, boolean trimLeading, boolean trimTrailing)Removes leading and/or trailing whitespaces from the source part of a given text unit resource.static voidTextUnitUtil. unsegmentTU(ITextUnit tu)Constructors in net.sf.okapi.common.resource with parameters of type ITextUnit Constructor Description AlignedSegments(ITextUnit parent) -
Uses of ITextUnit in net.sf.okapi.common.skeleton
Methods in net.sf.okapi.common.skeleton with parameters of type ITextUnit Modifier and Type Method Description voidGenericSkeleton. addContentPlaceholder(ITextUnit textUnit)Adds to this skeleton a placeholder for the source content of the resource to which this skeleton is attached.voidGenericSkeleton. 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 StringGenericSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)Gets the original content of a given text unit.protected StringGenericSkeletonWriter. getString(ITextUnit tu, LocaleId locToUse, EncoderContext context)Gets the skeleton and the original content of a given text unit.StringGenericSkeletonWriter. processTextUnit(ITextUnit resource)StringISkeletonWriter. processTextUnit(ITextUnit resource)Processes the TEXT_UNIT event. -
Uses of ITextUnit in net.sf.okapi.connectors.google
Methods in net.sf.okapi.connectors.google with parameters of type ITextUnit Modifier and Type Method Description voidGoogleMTv2Connector. leverage(ITextUnit tu)Method parameters in net.sf.okapi.connectors.google with type arguments of type ITextUnit Modifier and Type Method Description voidGoogleMTv2Connector. batchLeverage(List<ITextUnit> tuList) -
Uses of ITextUnit in net.sf.okapi.connectors.microsoft
Methods in net.sf.okapi.connectors.microsoft with parameters of type ITextUnit Modifier and Type Method Description voidMicrosoftMTConnector. leverage(ITextUnit tu)Method parameters in net.sf.okapi.connectors.microsoft with type arguments of type ITextUnit Modifier and Type Method Description voidMicrosoftMTConnector. batchLeverage(List<ITextUnit> tuList) -
Uses of ITextUnit in net.sf.okapi.filters.abstractmarkup
Methods in net.sf.okapi.filters.abstractmarkup that return ITextUnit Modifier and Type Method Description protected ITextUnitAbstractMarkupEventBuilder. postProcessTextUnit(ITextUnit textUnit)Methods in net.sf.okapi.filters.abstractmarkup with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitAbstractMarkupEventBuilder. postProcessTextUnit(ITextUnit textUnit)protected voidAbstractMarkupFilter. postProcessTextUnit(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.filters.doxygen
Methods in net.sf.okapi.filters.doxygen that return ITextUnit Modifier and Type Method Description protected ITextUnitWhitespaceAdjustingEventBuilder. postProcessTextUnit(ITextUnit textUnit)Methods in net.sf.okapi.filters.doxygen with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitWhitespaceAdjustingEventBuilder. postProcessTextUnit(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.filters.its.html5
Methods in net.sf.okapi.filters.its.html5 with parameters of type ITextUnit Modifier and Type Method Description StringHTML5SkeletonWriter. processTextUnit(ITextUnit resource) -
Uses of ITextUnit in net.sf.okapi.filters.json
Methods in net.sf.okapi.filters.json that return ITextUnit Modifier and Type Method Description protected ITextUnitJsonEventBuilder. postProcessTextUnit(ITextUnit textUnit)Methods in net.sf.okapi.filters.json with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitJsonEventBuilder. postProcessTextUnit(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.filters.markdown
Methods in net.sf.okapi.filters.markdown that return ITextUnit Modifier and Type Method Description protected ITextUnitMarkdownEventBuilder. postProcessTextUnit(ITextUnit textUnit)Methods in net.sf.okapi.filters.markdown with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitMarkdownEventBuilder. postProcessTextUnit(ITextUnit textUnit)StringMarkdownSkeletonWriter. processTextUnit(ITextUnit resource) -
Uses of ITextUnit in net.sf.okapi.filters.plaintext.base
Methods in net.sf.okapi.filters.plaintext.base with parameters of type ITextUnit Modifier and Type Method Description protected List<Event>BasePlainTextFilter. callSubfilter(ITextUnit parent)protected booleanBasePlainTextFilter. checkTU(ITextUnit textUnit)protected booleanBasePlainTextFilter. isEmpty(ITextUnit textUnit)protected booleanBasePlainTextFilter. processTU(ITextUnit textUnit)protected TextProcessingResultBasePlainTextFilter. sendAsSkeleton(ITextUnit textUnit)protected TextProcessingResultBasePlainTextFilter. sendAsSource(ITextUnit textUnit)protected TextProcessingResultBasePlainTextFilter. sendAsSource(ITextUnit textUnit, boolean rejectEmpty)protected TextProcessingResultBasePlainTextFilter. sendAsTarget(ITextUnit target, ITextUnit source, LocaleId language) -
Uses of ITextUnit in net.sf.okapi.filters.rtf
Methods in net.sf.okapi.filters.rtf with parameters of type ITextUnit Modifier and Type Method Description booleanRTFFilter. getSegment(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.filters.table.base
Method parameters in net.sf.okapi.filters.table.base with type arguments of type ITextUnit Modifier and Type Method Description protected TextProcessingResultBaseTableFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum)Splits line into table cells.protected booleanBaseTableFilter. processCells(List<ITextUnit> cells, long lineNum) -
Uses of ITextUnit in net.sf.okapi.filters.table.csv
Methods in net.sf.okapi.filters.table.csv with parameters of type ITextUnit Modifier and Type Method Description protected booleanCommaSeparatedValuesFilter. checkTU(ITextUnit textUnit)protected booleanCommaSeparatedValuesFilter. isEmpty(ITextUnit textUnit)StringCSVSkeletonWriter. processTextUnit(ITextUnit tu)protected booleanCommaSeparatedValuesFilter. processTU(ITextUnit textUnit)Method parameters in net.sf.okapi.filters.table.csv with type arguments of type ITextUnit Modifier and Type Method Description protected TextProcessingResultCommaSeparatedValuesFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of ITextUnit in net.sf.okapi.filters.table.fwc
Method parameters in net.sf.okapi.filters.table.fwc with type arguments of type ITextUnit Modifier and Type Method Description protected TextProcessingResultFixedWidthColumnsFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of ITextUnit in net.sf.okapi.filters.table.tsv
Method parameters in net.sf.okapi.filters.table.tsv with type arguments of type ITextUnit Modifier and Type Method Description protected TextProcessingResultTabSeparatedValuesFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of ITextUnit in net.sf.okapi.filters.tex
Methods in net.sf.okapi.filters.tex with parameters of type ITextUnit Modifier and Type Method Description protected StringTEXSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)Gets the original content of a given text unit. -
Uses of ITextUnit in net.sf.okapi.filters.ttx
Methods in net.sf.okapi.filters.ttx with parameters of type ITextUnit Modifier and Type Method Description StringTTXSkeletonWriter. processTextUnit(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.filters.txml
Methods in net.sf.okapi.filters.txml with parameters of type ITextUnit Modifier and Type Method Description StringTXMLSkeletonWriter. processTextUnit(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.filters.xini.rainbowkit
Methods in net.sf.okapi.filters.xini.rainbowkit with parameters of type ITextUnit Modifier and Type Method Description voidFilterEventToXiniTransformer. transformTextUnit(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.filters.xliff
Methods in net.sf.okapi.filters.xliff with parameters of type ITextUnit Modifier and Type Method Description static voidXliffXtmFilterExtension. consolidateProperties(ITextUnit tu, LocaleId trgLocId)Consolidates all information for XTM at the segment-level.protected StringXLIFFSkeletonWriter. getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)StringSdlXliffSkeletonWriter. processTextUnit(ITextUnit resource)Process as normal xliff but search and replace sdl patterns in skeleton.StringXLIFFSkeletonWriter. processTextUnit(ITextUnit resource)protected voidXLIFFITSFilterExtension. readTextUnitITSAttributes(ITextUnit resource) -
Uses of ITextUnit in net.sf.okapi.filters.xliff.iws
Methods in net.sf.okapi.filters.xliff.iws with parameters of type ITextUnit Modifier and Type Method Description StringIwsXliffSkeletonWriter. processTextUnit(ITextUnit resource)Update the Idiom WorldServer Metadata if the content has been translated. -
Uses of ITextUnit in net.sf.okapi.filters.xliff2
Methods in net.sf.okapi.filters.xliff2 that return ITextUnit Modifier and Type Method Description ITextUnitX2ToOkpConverter. convert(Unit unit) -
Uses of ITextUnit in net.sf.okapi.filters.xliff2.util
Methods in net.sf.okapi.filters.xliff2.util with parameters of type ITextUnit Modifier and Type Method Description static voidPropertiesMapper. setTextUnitProperties(ITextUnit okapiTextUnit, Unit xliffTextUnit)Transfers properties from the Okapi Core TextUnit to the XLIFF Toolkit TextUnitstatic voidPropertiesMapper. setTextUnitProperties(Unit unit, ITextUnit tu)Transfers properties from the XLIFF Toolkit TextUnit to the Okapi Core TextUnit -
Uses of ITextUnit in net.sf.okapi.filters.yaml
Methods in net.sf.okapi.filters.yaml that return ITextUnit Modifier and Type Method Description protected ITextUnitYamlEventBuilder. postProcessTextUnit(ITextUnit textUnit)Methods in net.sf.okapi.filters.yaml with parameters of type ITextUnit Modifier and Type Method Description protected ITextUnitYamlEventBuilder. postProcessTextUnit(ITextUnit textUnit)StringYamlSkeletonWriter. processTextUnit(ITextUnit resource) -
Uses of ITextUnit in net.sf.okapi.lib.merge.merge
Methods in net.sf.okapi.lib.merge.merge that return ITextUnit Modifier and Type Method Description ITextUnitITextUnitMerger. mergeTargets(ITextUnit tuFromSkeleton, ITextUnit tuFromTranslation)Merges the translated text unit to the one from the skeleton.ITextUnitTextUnitMerger. mergeTargets(ITextUnit tuFromSkel, ITextUnit tuFromTran)ITextUnitTextUnitMergerSerialized. mergeTargets(ITextUnit tuFromSkel, ITextUnit tuFromTran)Methods in net.sf.okapi.lib.merge.merge with parameters of type ITextUnit Modifier and Type Method Description ITextUnitITextUnitMerger. mergeTargets(ITextUnit tuFromSkeleton, ITextUnit tuFromTranslation)Merges the translated text unit to the one from the skeleton.ITextUnitTextUnitMerger. mergeTargets(ITextUnit tuFromSkel, ITextUnit tuFromTran)ITextUnitTextUnitMergerSerialized. mergeTargets(ITextUnit tuFromSkel, ITextUnit tuFromTran) -
Uses of ITextUnit in net.sf.okapi.lib.serialization.textunitflat
Methods in net.sf.okapi.lib.serialization.textunitflat with parameters of type ITextUnit Modifier and Type Method Description static TextUnitTextUnitFlat2Proto. toTextUnit(ITextUnit tu, LocaleId sourceLocale)Method parameters in net.sf.okapi.lib.serialization.textunitflat with type arguments of type ITextUnit Modifier and Type Method Description static TextUnitsTextUnitFlat2Proto. toTextUnits(List<ITextUnit> textunits, LocaleId sourceLocale) -
Uses of ITextUnit in net.sf.okapi.lib.translation
Methods in net.sf.okapi.lib.translation with parameters of type ITextUnit Modifier and Type Method Description voidBaseConnector. leverage(ITextUnit tu)voidQueryManager. leverage(ITextUnit tu)Leverages a text unit (segmented or not) based on the current settings.protected voidBaseConnector. leverageUsingBatchQuery(ITextUnit tu)Call this method inside the overridingBaseConnector.leverage(ITextUnit)method of the derived class, if that class offers a fastBaseConnector.batchQuery(List)method.Method parameters in net.sf.okapi.lib.translation with type arguments of type ITextUnit Modifier and Type Method Description voidBaseConnector. batchLeverage(List<ITextUnit> tus)Slow default implementation using leverage(TextUnit).protected voidBaseConnector. batchLeverageUsingBatchQuery(List<ITextUnit> tuList)Call this method inside the overridingBaseConnector.batchLeverage(List)method of the derived class, if that class offers a fastBaseConnector.batchQuery(List)method. -
Uses of ITextUnit in net.sf.okapi.lib.verification
Methods in net.sf.okapi.lib.verification with parameters of type ITextUnit Modifier and Type Method Description voidAbstractChecker. 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)voidAbstractChecker. 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)intLanguageToolConnector. checkSegment(URI docId, String subDocId, Segment srcSeg, Segment trgSeg, ITextUnit tu)intSpaceChecker. checkUnitSpacing(ITextUnit tu, LocaleId trgLoc)Checks and fixes white spaces for a given text unit.abstract voidAbstractChecker. processTextUnit(ITextUnit tu)voidCharactersChecker. processTextUnit(ITextUnit tu)voidGeneralChecker. processTextUnit(ITextUnit tu)voidInlineCodesChecker. processTextUnit(ITextUnit tu)voidLengthChecker. processTextUnit(ITextUnit tu)voidLocalizableChecker. processTextUnit(ITextUnit tu)voidPatternsChecker. processTextUnit(ITextUnit tu)voidQualityCheckSession. processTextUnit(ITextUnit textUnit)voidAbstractChecker. 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)voidAbstractChecker. reportIssue(Issue init, ITextUnit tu, String srcOri, String trgOri, Object extra)Deprecated.voidIssue. setContainers(ITextUnit tu, LocaleId trgLoc)intBlacklistChecker. verify(URI docId, String subDocId, ITextUnit tu, Segment segment, boolean allowBlacklistSub, boolean isSrc)intTermChecker. verify(URI docId, String subDocId, ITextUnit tu, Segment srcSeg, Segment trgSeg) -
Uses of ITextUnit in net.sf.okapi.steps.cleanup
Methods in net.sf.okapi.steps.cleanup with parameters of type ITextUnit Modifier and Type Method Description protected voidCleaner. checkCharacters(ITextUnit tu, Segment seg, LocaleId targetLocale)Wrapper for removing character corruption and detecting unexpected characters.protected voidCleaner. markSegmentForRemoval(ITextUnit tu, Segment seg, LocaleId targetLocale)Effectively marks the segment for removal by emptying the content for the given target.protected voidCleaner. matchRegexExpressions(ITextUnit tu, Segment seg, LocaleId targetLocale)Marks segments for removal that contain text which match given regular expressions.protected voidCleaner. normalizeMarks(ITextUnit tu, Segment seg, LocaleId targetLocale)protected voidCleaner. normalizeQuotation(ITextUnit tu, Segment seg, LocaleId targetLocale)Converts all quotation marks (curly or language specific) to straight quotes.protected voidCleaner. normalizeWhitespace(ITextUnit tu, Segment seg, LocaleId targetLocale)Converts whitespace ({tab}, {space}, {CR}, {LF}) to single space.protected booleanCleaner. pruneTextUnit(ITextUnit tu, LocaleId targetLocale)Removes segments from the text unit marked as not containing useful information.booleanCleaner. run(ITextUnit tu, LocaleId targetLocale)Performs the cleaning of the text unit according to user selected options. -
Uses of ITextUnit in net.sf.okapi.steps.codesremoval
Methods in net.sf.okapi.steps.codesremoval with parameters of type ITextUnit Modifier and Type Method Description voidCodesRemover. processTextUnit(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.steps.common
Methods in net.sf.okapi.steps.common with parameters of type ITextUnit Modifier and Type Method Description booleanExtractionVerificationUtil. compareTextUnits(ITextUnit tu1, ITextUnit tu2)Compare two ITextUnits -
Uses of ITextUnit in net.sf.okapi.steps.common.tufiltering
Methods in net.sf.okapi.steps.common.tufiltering with parameters of type ITextUnit Modifier and Type Method Description booleanITextUnitFilter. accept(ITextUnit tu)Tests if a given text unit should be processed by a filtering pipeline step. -
Uses of ITextUnit in net.sf.okapi.steps.diffleverage
Methods in net.sf.okapi.steps.diffleverage with parameters of type ITextUnit Modifier and Type Method Description intFuzzyTextUnitComparator. compare(ITextUnit oldTextUnit, ITextUnit newTextUnit)intTextUnitComparator. compare(ITextUnit oldTextUnit, ITextUnit newTextUnit) -
Uses of ITextUnit in net.sf.okapi.steps.enrycher
Method parameters in net.sf.okapi.steps.enrycher with type arguments of type ITextUnit Modifier and Type Method Description protected voidEnrycherClient. parseHTML(String htmlResult, LinkedList<ITextUnit> list)voidEnrycherClient. processList(LinkedList<ITextUnit> list)Call the Enrycher service on a list of text units. -
Uses of ITextUnit in net.sf.okapi.steps.paraaligner
Method parameters in net.sf.okapi.steps.paraaligner with type arguments of type ITextUnit Modifier and Type Method Description net.sf.okapi.steps.paraaligner.AlignedParagraphsParagraphAligner. align(List<ITextUnit> sourceParagraphs, List<ITextUnit> targetParagraphs, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)Constructor parameters in net.sf.okapi.steps.paraaligner with type arguments of type ITextUnit Constructor Description ParagraphAligner(List<AlignmentScorer<ITextUnit>> scorerList) -
Uses of ITextUnit in net.sf.okapi.steps.rainbowkit.common
Methods in net.sf.okapi.steps.rainbowkit.common with parameters of type ITextUnit Modifier and Type Method Description longWordCounter. getWordCount(ITextUnit tu)longWordCounter. getWordCount(ITextUnit tu, LocaleId trgId)protected voidBasePackageWriter. writeTMXEntries(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.steps.rainbowkit.xliff
Methods in net.sf.okapi.steps.rainbowkit.xliff with parameters of type ITextUnit Modifier and Type Method Description protected UnitXLIFF2PackageWriter. toXLIFF2Unit(ITextUnit tu)protected UnitXLIFF2TerminologyPackageWriter. toXLIFF2Unit(ITextUnit unit) -
Uses of ITextUnit in net.sf.okapi.steps.sentencealigner
Methods in net.sf.okapi.steps.sentencealigner that return ITextUnit Modifier and Type Method Description ITextUnitSentenceAligner. align(ITextUnit bilingualParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)ITextUnitSentenceAligner. align(ITextUnit sourceParagraph, ITextUnit targetParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)Methods in net.sf.okapi.steps.sentencealigner with parameters of type ITextUnit Modifier and Type Method Description ITextUnitSentenceAligner. align(ITextUnit bilingualParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly)ITextUnitSentenceAligner. align(ITextUnit sourceParagraph, ITextUnit targetParagraph, LocaleId srcLocale, LocaleId trgLocale, boolean outputOneTOneMatchesOnly) -
Uses of ITextUnit in net.sf.okapi.steps.termextraction
Methods in net.sf.okapi.steps.termextraction with parameters of type ITextUnit Modifier and Type Method Description voidSimpleTermExtractor. processTextUnit(ITextUnit tu)Processes a text unit for term extraction. -
Uses of ITextUnit in net.sf.okapi.steps.terminologyleveraging
Methods in net.sf.okapi.steps.terminologyleveraging with parameters of type ITextUnit Modifier and Type Method Description voidBaseTerminologyConnector. leverage(ITextUnit unit)voidITerminologyQuery. leverage(ITextUnit tu) -
Uses of ITextUnit in net.sf.okapi.steps.tokenization
Methods in net.sf.okapi.steps.tokenization with parameters of type ITextUnit Modifier and Type Method Description static TokensTokenizer. tokenize(ITextUnit textUnit, LocaleId language, String... tokenNames) -
Uses of ITextUnit in net.sf.okapi.steps.whitespacecorrection
Methods in net.sf.okapi.steps.whitespacecorrection that return ITextUnit Modifier and Type Method Description ITextUnitWhitespaceCorrector. correctWhitespace(ITextUnit tu)Methods in net.sf.okapi.steps.whitespacecorrection with parameters of type ITextUnit Modifier and Type Method Description protected voidWhitespaceCorrector. addTrailingWhitespace(ITextUnit textUnit)ITextUnitWhitespaceCorrector. correctWhitespace(ITextUnit tu)protected voidWhitespaceCorrector. removeTrailingWhitespace(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.steps.wordcount
Methods in net.sf.okapi.steps.wordcount with parameters of type ITextUnit Modifier and Type Method Description static longWordCounter. count(ITextUnit textUnit, LocaleId language)Counts words in the source part of a given text unit.static longCharacterCounter. getCount(ITextUnit tu)Returns the character count information stored by CharacterCountStep in the source part of a given text unit.static longCharacterCounter. 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.static longWordCounter. getCount(ITextUnit tu)Returns the word count information stored by WordCountStep in the source part of a given text unit.static longWordCounter. 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. -
Uses of ITextUnit in net.sf.okapi.steps.wordcount.categorized.gmx
Methods in net.sf.okapi.steps.wordcount.categorized.gmx with parameters of type ITextUnit Modifier and Type Method Description protected longGMXProtectedWordCountStep. countInTextUnit(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.steps.wordcount.common
Methods in net.sf.okapi.steps.wordcount.common with parameters of type ITextUnit Modifier and Type Method Description protected longAltAnnotationBasedCountStep. countInTextUnit(ITextUnit textUnit)protected abstract longBaseCountStep. countInTextUnit(ITextUnit textUnit)protected longTokenCountStep. countInTextUnit(ITextUnit textUnit) -
Uses of ITextUnit in net.sf.okapi.tm.pensieve.common
Methods in net.sf.okapi.tm.pensieve.common that return ITextUnit Modifier and Type Method Description static ITextUnitPensieveUtil. convertToTextUnit(TranslationUnit tu)Converts a TranslationUnit to a TextUnitMethods in net.sf.okapi.tm.pensieve.common with parameters of type ITextUnit Modifier and Type Method Description static TranslationUnitPensieveUtil. convertToTranslationUnit(LocaleId sourceLoc, LocaleId targetLoc, ITextUnit textUnit)Converts an un-segmented TextUnit into a TranslationUnit.
-