| Modifier and Type | Method and Description |
|---|---|
int |
ISegmenter.computeSegments(TextContainer container)
Calculates the segmentation of a given TextContainer object.
|
Range |
ISegmenter.getNextSegmentRange(TextContainer container)
Compute the range of the next segment for a given TextContainer object.
|
static void |
RenumberingUtil.renumberCodesForDesegmentation(TextContainer tc)
Reverse the renumbering process that was performed during segmentation.
|
static void |
RenumberingUtil.renumberCodesForSegmentation(TextContainer tc)
Renumber the codes in a TextContainer for segmentation.
|
| Modifier and Type | Method and Description |
|---|---|
TextContainer |
AltTranslation.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.
|
TextContainer |
AltTranslation.getTarget()
Gets the target content of this entry.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
GenericAnnotation.addAnnotation(TextContainer tc,
GenericAnnotation ann)
Adds an annotation to a text container.
|
static void |
ITSLQIAnnotations.addAnnotations(TextContainer tc,
GenericAnnotation issue)
Adds an LQI annotation to a text container.
|
static void |
ITSLQIAnnotations.addAnnotations(TextContainer tc,
ITSLQIAnnotations newSet)
Adds an ITSLQIAnnotations to a text container.
|
static void |
ITSProvenanceAnnotations.addAnnotations(TextContainer tc,
ITSProvenanceAnnotations newSet) |
| Modifier and Type | Method and Description |
|---|---|
String |
GenericContent.printSegmentedContent(TextContainer container,
boolean showSegments)
Prints a generic string representation of a given segmented text, with optional
markers to indicate the segments boundaries.
|
String |
GenericContent.printSegmentedContent(TextContainer container,
boolean showSegments,
boolean normalText)
Prints a string representation of a given segmented text, with optional
markers to indicate the segments boundaries.
|
String |
XLIFFContent.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 void |
TMXWriter.writeAllPropertiesAsAttibutes(XMLWriter writer,
Set<String> names,
TextContainer item) |
protected void |
TMXWriter.writeTUV(TextFragment frag,
LocaleId locale,
TextContainer contForProp)
Writes a TUV element.
|
| Modifier and Type | Method and Description |
|---|---|
TextContainer |
TextContainer.clone()
Clones this TextContainer, including the properties.
|
TextContainer |
TextContainer.clone(boolean cloneProperties)
Clones this container, with or without its properties.
|
TextContainer |
TextUnit.createTarget(LocaleId targetLocale,
boolean overwriteExisting,
int creationOptions) |
TextContainer |
ITextUnit.createTarget(LocaleId locId,
boolean overwriteExisting,
int creationOptions)
Creates or get the target for this TextUnit.
|
TextContainer |
Segments.getParent() |
TextContainer |
TextUnit.getSource() |
TextContainer |
ITextUnit.getSource()
Gets the source object for this text unit (a
TextContainer object). |
TextContainer |
TextUnit.getTarget(LocaleId locId) |
TextContainer |
ITextUnit.getTarget(LocaleId locId)
Gets the target object for this text unit for a given locale.
|
TextContainer |
TextContainer.setContentFromString(String data)
Sets content of this TextContainer from a string created by
contentToString(TextContainer). |
TextContainer |
TextUnit.setSource(TextContainer textContainer) |
TextContainer |
ITextUnit.setSource(TextContainer textContainer)
Sets the source object for this TextUnit.
|
TextContainer |
TextUnit.setTarget(LocaleId locId,
TextContainer text) |
TextContainer |
ITextUnit.setTarget(LocaleId locId,
TextContainer text)
Sets the target object for this text unit for a given locale.
|
static TextContainer |
TextContainer.splitStorageToContent(String ctext,
String codes)
Creates a new
TextContainer object from two strings generated
with contentToSplitStorage(TextContainer). |
static TextContainer |
TextContainer.stringToContent(String data)
Converts a string created by
contentToString(TextContainer)
back into a TextContainer. |
| Modifier and Type | Method and Description |
|---|---|
static AltTranslationsAnnotation |
TextUnitUtil.addAltTranslation(TextContainer targetContainer,
AltTranslation alt)
Adds an
AltTranslation object to a given TextContainer. |
static ITextUnit |
TextUnitUtil.buildTU(ITextUnit textUnit,
String name,
TextContainer source,
TextContainer target,
LocaleId locId,
String comment)
Creates a new text unit resource or updates the one passed as the parameter.
|
static ITextUnit |
TextUnitUtil.buildTU(TextContainer source)
Creates a new text unit resource based on a given text container object becoming the source part of the text
unit.
|
int |
TextContainer.compareTo(TextContainer cont,
boolean codeSensitive)
Compares this container with another one.
|
static String[] |
TextContainer.contentToSplitStorage(TextContainer tc)
Create two storage strings to serialize a given
TextContainer. |
static String |
TextContainer.contentToString(TextContainer tc)
Creates a string that stores the content of a given container.
|
static void |
TextUnitUtil.convertTextParts_whitespaceCodesToText(TextContainer tc) |
static void |
TextUnitUtil.convertTextPartsToCodes(TextContainer tc)
Convert all TextParts (not Segments) in a given TextContainer to each contain
a single code with the part's text.
|
static boolean |
TextUnitUtil.isWellformed(TextContainer tc) |
static boolean |
TextUnitUtil.needsPreserveWhitespaces(TextContainer tc)
Detects if a given TextContainer contains whitespace characters to
be preserved in XML.
|
static void |
TextUnitUtil.removeCodes(TextContainer tc)
Removes all inline tags from the given
TextContainer |
static void |
TextUnitUtil.renumberCodes(TextContainer tc) |
static String |
TextUnitUtil.restoreSegmentation(TextContainer tc,
TextFragment segStorage)
Restores original segmentation of a given text container from a given text fragment created with storeSegmentation().
|
TextContainer |
TextUnit.setSource(TextContainer textContainer) |
TextContainer |
ITextUnit.setSource(TextContainer textContainer)
Sets the source object for this TextUnit.
|
TextContainer |
TextUnit.setTarget(LocaleId locId,
TextContainer text) |
TextContainer |
ITextUnit.setTarget(LocaleId locId,
TextContainer text)
Sets the target object for this text unit for a given locale.
|
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 void |
TextUnitUtil.simplifyCodesPostSegmentation(TextContainer tc,
String rules,
boolean removeLeadingTrailingCodes,
boolean mergeCodes)
Simplifies all possible tags in the source part of a given text unit resource.
|
static TextFragment |
TextUnitUtil.storeSegmentation(TextContainer tc) |
static void |
TextUnitUtil.trimSegments(TextContainer tc) |
static void |
TextUnitUtil.trimSegments(TextContainer tc,
boolean trimLeading,
boolean trimTrailing)
Trims segments of a given text container that contains leading or trailing whitespaces.
|
| Constructor and Description |
|---|
Segments(TextContainer parent)
Creates an uninitialized Segments object.
|
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
BasePlainTextFilter.component_exec(TextContainer lineContainer) |
protected TextProcessingResult |
BasePlainTextFilter.sendAsSource(TextContainer textContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
ParaPlainTextFilter.component_exec(TextContainer lineContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
SplicedLinesFilter.component_exec(TextContainer lineContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
BaseTableFilter.component_exec(TextContainer lineContainer) |
protected TextProcessingResult |
BaseTableFilter.extractCells(List<ITextUnit> cells,
TextContainer lineContainer,
long lineNum)
Splits line into table cells.
|
| 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 void |
TXMLSkeletonWriter.ensureTxmlPattern(TextContainer tc) |
| Modifier and Type | Method and Description |
|---|---|
protected TextProcessingResult |
AbstractLineFilter.component_exec(TextContainer lineContainer)
Called by the filter for every line read from the input
|
| Modifier and Type | Method and Description |
|---|---|
int |
SRXSegmenter.computeSegments(TextContainer container) |
Range |
SRXSegmenter.getNextSegmentRange(TextContainer container) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
QueryManager.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.
|
| Modifier and Type | Method and Description |
|---|---|
TextContainer |
Issue.getSourceContainer() |
TextContainer |
Issue.getTargetContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractChecker.addAnnotation(TextContainer tc,
String segId,
IssueType issueType,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
List<Code> codes) |
void |
AbstractChecker.addAnnotation(TextContainer tc,
String segId,
IssueType issueType,
String comment,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
double severity,
List<Code> codes,
String itsType) |
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) |
protected String |
AbstractChecker.getDisplay(TextContainer tc)
Generates the display string for a source or target text=container.
|
void |
AbstractChecker.setAnnotationIds(TextContainer srcCont,
TextContainer trgCont) |
| Modifier and Type | Method and Description |
|---|---|
void |
CodesRemover.processContainer(TextContainer tc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExtractionVerificationUtil.compareTextContainers(TextContainer tc1,
TextContainer tc2)
Compares two TextContainers.
|
boolean |
ExtractionVerificationUtil.compareTextContainers(TextContainer tc1,
TextContainer tc2,
boolean allowPropValChanges)
Compares two TextContainers.
|
| Modifier and Type | Method and Description |
|---|---|
long |
WordCounter.getWordCount(TextContainer cont) |
| Modifier and Type | Method and Description |
|---|---|
static Tokens |
Tokenizer.tokenize(TextContainer textContainer,
LocaleId language,
String... tokenNames) |
| Modifier and Type | Method and Description |
|---|---|
protected TextContainer |
CharacterCountStep.getSource() |
| Modifier and Type | Method and Description |
|---|---|
static long |
WordCounter.count(TextContainer textContainer,
LocaleId language)
Counts words in a given text container.
|
protected long |
WordCountStep.count(TextContainer textContainer,
LocaleId locale) |
static long |
WordCounter.getCount(TextContainer tc)
Returns the word count information stored by WordCountStep in the given text container.
|
protected void |
CharacterCountStep.removeFromMetrics(TextContainer textContainer,
String metricName) |
protected void |
CharacterCountStep.saveToMetrics(TextContainer textContainer,
CharacterCounter.Counts count) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
GMXProtectedWordCountStep.count(TextContainer textContainer,
LocaleId locale) |
| Modifier and Type | Method and Description |
|---|---|
protected TextContainer |
BaseCountStep.getSource() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
TokenCountStep.count(TextContainer textContainer,
LocaleId locale) |
protected long |
TokenCharacterCountStep.count(TextContainer textContainer,
LocaleId locale) |
protected abstract long |
BaseCountStep.count(TextContainer textContainer,
LocaleId locale) |
protected long |
AltAnnotationBasedCountStep.count(TextContainer textContainer,
LocaleId locale) |
long |
BaseCounter.doGetCount(TextContainer tc) |
static long |
BaseCounter.getCount(TextContainer tc,
String metricName) |
protected Tokens |
TokenCountStep.getTokens(TextContainer textContainer,
LocaleId locale) |
protected void |
BaseCountStep.removeFromMetrics(TextContainer textContainer,
String metricName) |
protected void |
BaseCountStep.saveToMetrics(TextContainer textContainer,
long count) |
Copyright © 2021. All rights reserved.