Uses of Class
net.sf.okapi.common.resource.TextContainer
-
-
Uses of TextContainer in net.sf.okapi.common
Methods in net.sf.okapi.common with parameters of type TextContainer Modifier and Type Method Description intISegmenter. computeSegments(TextContainer container)Calculates the segmentation of a given TextContainer object.RangeISegmenter. getNextSegmentRange(TextContainer container)Compute the range of the next segment for a given TextContainer object.static voidRenumberingUtil. renumberCodesForDesegmentation(TextContainer tc)Reverse the renumbering process that was performed during segmentation.static voidRenumberingUtil. renumberCodesForSegmentation(TextContainer tc)Renumber the codes in a TextContainer for segmentation. -
Uses of TextContainer in net.sf.okapi.common.annotation
Methods in net.sf.okapi.common.annotation that return TextContainer Modifier and Type Method Description TextContainerAltTranslation. getSource()Gets the source content of this entry (can be empty) If the result is empty, it means the source is the same as the source of the object (segment or text container) is attached to.TextContainerAltTranslation. getTarget()Gets the target content of this entry.Methods in net.sf.okapi.common.annotation with parameters of type TextContainer Modifier and Type Method Description static voidGenericAnnotation. addAnnotation(TextContainer tc, GenericAnnotation ann)Adds an annotation to a text container.static voidITSLQIAnnotations. addAnnotations(TextContainer tc, GenericAnnotation issue)Adds an LQI annotation to a text container.static voidITSLQIAnnotations. addAnnotations(TextContainer tc, ITSLQIAnnotations newSet)Adds an ITSLQIAnnotations to a text container.static voidITSProvenanceAnnotations. addAnnotations(TextContainer tc, ITSProvenanceAnnotations newSet) -
Uses of TextContainer in net.sf.okapi.common.filters
Methods in net.sf.okapi.common.filters with parameters of type TextContainer Modifier and Type Method Description protected abstract TextProcessingResultAbstractLineFilter. processLine(TextContainer lineContainer)Called by the filter for every line read from the input -
Uses of TextContainer in net.sf.okapi.common.filterwriter
Methods in net.sf.okapi.common.filterwriter with parameters of type TextContainer Modifier and Type Method Description StringGenericContent. printSegmentedContent(TextContainer container, boolean showSegments)Prints a generic string representation of a given segmented text, with optional markers to indicate the segments boundaries.StringGenericContent. printSegmentedContent(TextContainer container, boolean showSegments, boolean normalText)Prints a string representation of a given segmented text, with optional markers to indicate the segments boundaries.StringXLIFFContent. toSegmentedString(TextContainer container, int quoteMode, boolean escapeGT, boolean withMarkers, boolean gMode, boolean codeAttrs, boolean includeIts, LocaleId trgLocId)Generates an XLIFF string from a given text container.protected voidTMXWriter. writeAllPropertiesAsAttibutes(XMLWriter writer, Set<String> names, TextContainer item)protected voidTMXWriter. writeTUV(TextFragment frag, LocaleId locale, TextContainer contForProp)Writes a TUV element. -
Uses of TextContainer in net.sf.okapi.common.resource
Methods in net.sf.okapi.common.resource that return TextContainer Modifier and Type Method Description TextContainerTextContainer. clone()Clones this TextContainer, including the properties.TextContainerTextContainer. clone(boolean cloneProperties)Clones this container, with or without its properties.TextContainerITextUnit. createTarget(LocaleId locId, boolean overwriteExisting, int creationOptions)Creates or get the target for this TextUnit.TextContainerTextUnit. createTarget(LocaleId targetLocale, boolean overwriteExisting, int creationOptions)TextContainerSegments. getParent()TextContainerITextUnit. getSource()Gets the source object for this text unit (aTextContainerobject).TextContainerTextUnit. getSource()TextContainerITextUnit. getTarget(LocaleId locId)Gets the target object for this text unit for a given locale.TextContainerTextUnit. getTarget(LocaleId locId)TextContainerTextContainer. setContentFromString(String data)Sets content of this TextContainer from a string created bycontentToString(TextContainer).TextContainerITextUnit. setSource(TextContainer textContainer)Sets the source object for this TextUnit.TextContainerTextUnit. setSource(TextContainer textContainer)TextContainerITextUnit. setTarget(LocaleId locId, TextContainer text)Sets the target object for this text unit for a given locale.TextContainerTextUnit. setTarget(LocaleId locId, TextContainer text)static TextContainerTextContainer. splitStorageToContent(String ctext, String codes)Creates a newTextContainerobject from two strings generated withcontentToSplitStorage(TextContainer).static TextContainerTextContainer. stringToContent(String data)Converts a string created bycontentToString(TextContainer)back into a TextContainer.Methods in net.sf.okapi.common.resource with parameters of type TextContainer Modifier and Type Method Description static AltTranslationsAnnotationTextUnitUtil. addAltTranslation(TextContainer targetContainer, AltTranslation alt)Adds anAltTranslationobject to a givenTextContainer.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.intTextContainer. compareTo(TextContainer cont, boolean codeSensitive)Compares this container with another one.static String[]TextContainer. contentToSplitStorage(TextContainer tc)Create two storage strings to serialize a givenTextContainer.static StringTextContainer. contentToString(TextContainer tc)Creates a string that stores the content of a given container.static voidTextUnitUtil. convertTextParts_whitespaceCodesToText(TextContainer tc)static voidTextUnitUtil. convertTextPartsToCodes(TextContainer tc)Convert all TextParts (not Segments) in a given TextContainer to each contain a single code with the part's text.static booleanTextUnitUtil. isWellformed(TextContainer tc)static booleanTextUnitUtil. needsPreserveWhitespaces(TextContainer tc)Detects if a given TextContainer contains whitespace characters to be preserved in XML.static voidTextUnitUtil. removeCodes(TextContainer tc)Removes all inline tags from the givenTextContainerstatic voidTextUnitUtil. renumberCodes(TextContainer tc)static StringTextUnitUtil. restoreSegmentation(TextContainer tc, TextFragment segStorage)Restores original segmentation of a given text container from a given text fragment created with storeSegmentation().TextContainerITextUnit. setSource(TextContainer textContainer)Sets the source object for this TextUnit.TextContainerTextUnit. setSource(TextContainer textContainer)TextContainerITextUnit. setTarget(LocaleId locId, TextContainer text)Sets the target object for this text unit for a given locale.TextContainerTextUnit. setTarget(LocaleId locId, TextContainer text)TextFragment[]CodeSimplifier. simplifyAll(TextContainer tc, boolean removeLeadingTrailingCodes, boolean mergeCodes)Simplifies all possible tags in a given possibly segmented text container.static TextFragment[]TextUnitUtil. simplifyCodes(TextContainer tc, String rules, boolean removeLeadingTrailingCodes)Simplifies all possible tags in a given text container.static TextFragment[]TextUnitUtil. simplifyCodes(TextContainer tc, String rules, boolean removeLeadingTrailingCodes, boolean mergeCodes)Simplifies all possible tags in a given text container.static voidTextUnitUtil. simplifyCodesPostSegmentation(TextContainer tc, String rules, boolean removeLeadingTrailingCodes, boolean mergeCodes)Simplifies all possible tags in the source part of a given text unit resource.static TextFragmentTextUnitUtil. storeSegmentation(TextContainer tc)static voidTextUnitUtil. trimSegments(TextContainer tc)static voidTextUnitUtil. trimSegments(TextContainer tc, boolean trimLeading, boolean trimTrailing)Trims segments of a given text container that contains leading or trailing whitespaces.Constructors in net.sf.okapi.common.resource with parameters of type TextContainer Constructor Description Segments(TextContainer parent)Creates an uninitialized Segments object. -
Uses of TextContainer in net.sf.okapi.filters.plaintext.base
Methods in net.sf.okapi.filters.plaintext.base with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultBasePlainTextFilter. processLine(TextContainer lineContainer)protected TextProcessingResultBasePlainTextFilter. sendAsSource(TextContainer textContainer) -
Uses of TextContainer in net.sf.okapi.filters.plaintext.paragraphs
Methods in net.sf.okapi.filters.plaintext.paragraphs with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultParaPlainTextFilter. processLine(TextContainer lineContainer) -
Uses of TextContainer in net.sf.okapi.filters.plaintext.spliced
Methods in net.sf.okapi.filters.plaintext.spliced with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultSplicedLinesFilter. processLine(TextContainer lineContainer) -
Uses of TextContainer in net.sf.okapi.filters.table.base
Methods in net.sf.okapi.filters.table.base with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultBaseTableFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum)Splits line into table cells.protected TextProcessingResultBaseTableFilter. processLine(TextContainer lineContainer) -
Uses of TextContainer in net.sf.okapi.filters.table.csv
Methods in net.sf.okapi.filters.table.csv with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultCommaSeparatedValuesFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of TextContainer in net.sf.okapi.filters.table.fwc
Methods in net.sf.okapi.filters.table.fwc with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultFixedWidthColumnsFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of TextContainer in net.sf.okapi.filters.table.tsv
Methods in net.sf.okapi.filters.table.tsv with parameters of type TextContainer Modifier and Type Method Description protected TextProcessingResultTabSeparatedValuesFilter. extractCells(List<ITextUnit> cells, TextContainer lineContainer, long lineNum) -
Uses of TextContainer in net.sf.okapi.filters.txml
Methods in net.sf.okapi.filters.txml with parameters of type TextContainer Modifier and Type Method Description protected voidTXMLSkeletonWriter. ensureTxmlPattern(TextContainer tc) -
Uses of TextContainer in net.sf.okapi.lib.segmentation
Methods in net.sf.okapi.lib.segmentation with parameters of type TextContainer Modifier and Type Method Description intSRXSegmenter. computeSegments(TextContainer container)RangeSRXSegmenter. getNextSegmentRange(TextContainer container) -
Uses of TextContainer in net.sf.okapi.lib.translation
Methods in net.sf.okapi.lib.translation with parameters of type TextContainer Modifier and Type Method Description static booleanQueryManager. canLeverage(TextContainer srcTc, TextContainer trgTc, boolean leverageIfTargetIsEmpty, boolean leverageIfTargetIsSameAsSource)Indicates if we can fill a given target TextContent with leveraged translation based on whether it is empty and whether it is the same as the source TextContent. -
Uses of TextContainer in net.sf.okapi.lib.verification
Methods in net.sf.okapi.lib.verification that return TextContainer Modifier and Type Method Description TextContainerIssue. getSourceContainer()TextContainerIssue. getTargetContainer()Methods in net.sf.okapi.lib.verification with parameters of type TextContainer Modifier and Type Method Description voidAbstractChecker. addAnnotation(TextContainer tc, String segId, IssueType issueType, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, List<Code> codes)voidAbstractChecker. addAnnotation(TextContainer tc, String segId, IssueType issueType, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, List<Code> codes, String itsType)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)protected StringAbstractChecker. getDisplay(TextContainer tc)Generates the display string for a source or target text=container.voidAbstractChecker. setAnnotationIds(TextContainer srcCont, TextContainer trgCont) -
Uses of TextContainer in net.sf.okapi.steps.codesremoval
Methods in net.sf.okapi.steps.codesremoval with parameters of type TextContainer Modifier and Type Method Description voidCodesRemover. processContainer(TextContainer tc) -
Uses of TextContainer in net.sf.okapi.steps.common
Methods in net.sf.okapi.steps.common with parameters of type TextContainer Modifier and Type Method Description booleanExtractionVerificationUtil. compareTextContainers(TextContainer tc1, TextContainer tc2)Compares two TextContainers.booleanExtractionVerificationUtil. compareTextContainers(TextContainer tc1, TextContainer tc2, boolean allowPropValChanges)Compares two TextContainers. -
Uses of TextContainer in net.sf.okapi.steps.rainbowkit.common
Methods in net.sf.okapi.steps.rainbowkit.common with parameters of type TextContainer Modifier and Type Method Description longWordCounter. getWordCount(TextContainer cont) -
Uses of TextContainer in net.sf.okapi.steps.tokenization
Methods in net.sf.okapi.steps.tokenization with parameters of type TextContainer Modifier and Type Method Description static TokensTokenizer. tokenize(TextContainer textContainer, LocaleId language, String... tokenNames) -
Uses of TextContainer in net.sf.okapi.steps.wordcount
Methods in net.sf.okapi.steps.wordcount that return TextContainer Modifier and Type Method Description protected TextContainerCharacterCountStep. getSource()Methods in net.sf.okapi.steps.wordcount with parameters of type TextContainer Modifier and Type Method Description static longWordCounter. count(TextContainer textContainer, LocaleId language)Counts words in a given text container.protected longWordCountStep. count(TextContainer textContainer, LocaleId locale)static longWordCounter. getCount(TextContainer tc)Returns the word count information stored by WordCountStep in the given text container.protected voidCharacterCountStep. removeFromMetrics(TextContainer textContainer, String metricName)protected voidCharacterCountStep. saveToMetrics(TextContainer textContainer, CharacterCounter.Counts count) -
Uses of TextContainer in net.sf.okapi.steps.wordcount.categorized.gmx
Methods in net.sf.okapi.steps.wordcount.categorized.gmx with parameters of type TextContainer Modifier and Type Method Description protected longGMXProtectedWordCountStep. count(TextContainer textContainer, LocaleId locale) -
Uses of TextContainer in net.sf.okapi.steps.wordcount.common
Methods in net.sf.okapi.steps.wordcount.common that return TextContainer Modifier and Type Method Description protected TextContainerBaseCountStep. getSource()Methods in net.sf.okapi.steps.wordcount.common with parameters of type TextContainer Modifier and Type Method Description protected longAltAnnotationBasedCountStep. count(TextContainer textContainer, LocaleId locale)protected abstract longBaseCountStep. count(TextContainer textContainer, LocaleId locale)protected longTokenCharacterCountStep. count(TextContainer textContainer, LocaleId locale)protected longTokenCountStep. count(TextContainer textContainer, LocaleId locale)longBaseCounter. doGetCount(TextContainer tc)static longBaseCounter. getCount(TextContainer tc, String metricName)protected TokensTokenCountStep. getTokens(TextContainer textContainer, LocaleId locale)protected voidBaseCountStep. removeFromMetrics(TextContainer textContainer, String metricName)protected voidBaseCountStep. saveToMetrics(TextContainer textContainer, long count)
-