| Package | Description |
|---|---|
| net.sf.okapi.common.resource |
Interfaces and classes that represent the parsed resources attached to the
events sent by a filter.
|
| net.sf.okapi.lib.translation |
Interfaces and classes for accessing translation resources.
|
| net.sf.okapi.lib.verification | |
| net.sf.okapi.steps.cleanup | |
| net.sf.okapi.steps.common |
Classes implementing often-used steps.
|
| net.sf.okapi.steps.rainbowkit.common | |
| net.sf.okapi.steps.repetitionanalysis | |
| net.sf.okapi.steps.sentencealigner | |
| net.sf.okapi.steps.terminologyleveraging | |
| net.sf.okapi.steps.wordcount | |
| net.sf.okapi.steps.wordcount.categorized.gmx | |
| net.sf.okapi.steps.wordcount.common |
| Modifier and Type | Method and Description |
|---|---|
Segment |
Segment.clone() |
Segment |
Segments.get(int index) |
Segment |
ISegments.get(int index)
Gets the segment for a given segment index.
|
Segment |
Segments.get(String id) |
Segment |
ISegments.get(String id)
Gets the segment for a given identifier.
|
Segment |
IAlignedSegments.getCorrespondingSource(Segment trgSeg,
LocaleId trgLoc)
Gets the source segment corresponding to a given target segment
|
Segment |
AlignedSegments.getCorrespondingSource(Segment trgSeg,
LocaleId trgLoc) |
Segment |
IAlignedSegments.getCorrespondingTarget(Segment seg,
LocaleId trgLoc)
Gets the target segment corresponding to a given source segment
|
Segment |
AlignedSegments.getCorrespondingTarget(Segment srcSeg,
LocaleId trgLoc) |
Segment |
TextContainer.getFirstSegment()
Returns the first
Segment of this container. |
Segment |
Segments.getLast() |
Segment |
ISegments.getLast()
Gets the last
Segment of the container. |
Segment |
IAlignedSegments.getSource(int index,
LocaleId trgLoc)
Gets the source segment for the given target locale at a given position.
|
Segment |
AlignedSegments.getSource(int index,
LocaleId trgLoc) |
Segment |
TextUnit.getSourceSegment(String segId,
boolean createIfNeeded) |
Segment |
ITextUnit.getSourceSegment(String segId,
boolean createIfNeeded)
Gets the source segment for a given segment id.
|
Segment |
TextUnit.getTargetSegment(LocaleId trgLoc,
String segId,
boolean createIfNeeded) |
Segment |
ITextUnit.getTargetSegment(LocaleId trgLoc,
String segId,
boolean createIfNeeded)
Gets the segment for a given segment id in a given target.
|
Segment |
IAlignedSegments.splitSource(LocaleId trgLoc,
Segment srcSeg,
int splitPos)
Splits a given source segment into two.
|
Segment |
AlignedSegments.splitSource(LocaleId trgLoc,
Segment srcSeg,
int splitPos) |
Segment |
IAlignedSegments.splitTarget(LocaleId trgLoc,
Segment trgSeg,
int splitPos)
Splits a given target segment into two.
|
Segment |
AlignedSegments.splitTarget(LocaleId trgLoc,
Segment trgSeg,
int splitPos) |
| Modifier and Type | Method and Description |
|---|---|
List<Segment> |
Segments.asList() |
List<Segment> |
ISegments.asList()
Get all segments.
|
Iterator<Segment> |
Segments.iterator() |
Iterator<Segment> |
ISegments.iterator()
Gets an iterator for the segments of this container.
|
Iterator<Segment> |
IAlignedSegments.iterator()
Gets an iterator for the default source segments of this text unit.
|
Iterator<Segment> |
AlignedSegments.iterator() |
Iterator<Segment> |
IAlignedSegments.iterator(LocaleId trgLoc)
Gets an iterator for the source of the specified target locale.
|
Iterator<Segment> |
AlignedSegments.iterator(LocaleId trgLoc) |
| Modifier and Type | Method and Description |
|---|---|
static AltTranslationsAnnotation |
TextUnitUtil.addAltTranslation(Segment seg,
AltTranslation alt)
Adds an
AltTranslation object to a given Segment. |
void |
Segments.append(Segment segment) |
void |
ISegments.append(Segment segment)
Appends a segment at the end of this container.
|
void |
Segments.append(Segment segment,
boolean collapseIfPreviousEmpty) |
void |
ISegments.append(Segment segment,
boolean collapseIfPreviousEmpty)
Appends a segment at the end of this container.
|
void |
IAlignedSegments.append(Segment srcSeg,
Segment trgSeg,
LocaleId trgLoc)
Adds given source and target segments to the end of the content.
|
void |
AlignedSegments.append(Segment srcSeg,
Segment trgSeg,
LocaleId trgLoc) |
void |
Segments.append(Segment segment,
String textBefore) |
void |
ISegments.append(Segment segment,
String textBefore)
Appends a segment at the end of this container, with an optional non-segment part just before.
|
void |
Segments.append(Segment segment,
String textBefore,
boolean collapseIfPreviousEmpty) |
void |
ISegments.append(Segment segment,
String textBefore,
boolean collapseIfPreviousEmpty)
Appends a segment at the end of this container, with an optional non-segment part just before.
|
Segment |
IAlignedSegments.getCorrespondingSource(Segment trgSeg,
LocaleId trgLoc)
Gets the source segment corresponding to a given target segment
|
Segment |
AlignedSegments.getCorrespondingSource(Segment trgSeg,
LocaleId trgLoc) |
Segment |
IAlignedSegments.getCorrespondingTarget(Segment seg,
LocaleId trgLoc)
Gets the target segment corresponding to a given source segment
|
Segment |
AlignedSegments.getCorrespondingTarget(Segment srcSeg,
LocaleId trgLoc) |
void |
Segments.insert(int index,
Segment seg) |
void |
ISegments.insert(int index,
Segment seg)
Inserts a given segment at the specified position.
|
void |
IAlignedSegments.insert(int index,
Segment srcSeg,
Segment trgSeg,
LocaleId trgLoc)
Inserts given source and target segments at the specified position in the
list of segments.
|
void |
AlignedSegments.insert(int index,
Segment srcSeg,
Segment trgSeg,
LocaleId trgLoc) |
void |
IAlignedSegments.joinWithNext(Segment seg,
LocaleId trgLoc)
Joins the segment for a given segment's id to the next segment, including
all the parts between the two segments.
|
void |
AlignedSegments.joinWithNext(Segment seg,
LocaleId trgLoc) |
boolean |
IAlignedSegments.remove(Segment seg,
LocaleId trgLoc)
Removes the given segment and any segments with the same id from the
specified sources and targets.
|
boolean |
AlignedSegments.remove(Segment seg,
LocaleId trgLoc) |
void |
Segments.set(int index,
Segment seg) |
void |
ISegments.set(int index,
Segment seg)
Sets a new segment at a given segment index.
|
void |
IAlignedSegments.setSegment(int index,
Segment seg,
LocaleId trgLoc)
Replaces a segment at a given position with a clone of the given segment.
|
void |
AlignedSegments.setSegment(int index,
Segment seg,
LocaleId trgLoc) |
Segment |
IAlignedSegments.splitSource(LocaleId trgLoc,
Segment srcSeg,
int splitPos)
Splits a given source segment into two.
|
Segment |
AlignedSegments.splitSource(LocaleId trgLoc,
Segment srcSeg,
int splitPos) |
Segment |
IAlignedSegments.splitTarget(LocaleId trgLoc,
Segment trgSeg,
int splitPos)
Splits a given target segment into two.
|
Segment |
AlignedSegments.splitTarget(LocaleId trgLoc,
Segment trgSeg,
int splitPos) |
void |
Segments.validateSegmentId(Segment seg)
Checks if the id of a given segment is empty, null or a duplicate.
|
| Constructor and Description |
|---|
AlignedPair(Segment sourceSegment,
Segment targetSegment,
LocaleId localeId)
Creates an AlignedPair from source and target
Segments |
TextContainer(Segment segment)
Creates a new TextContainer object with an initial segment.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
QueryManager.canLeverage(Segment srcSeg,
Segment trgSeg,
boolean leverageIfTargetIsEmpty,
boolean leverageIfTargetIsSameAsSource)
Indicates if we can fill a given target segment with leveraged translation based on
whether it is empty and whether it is the same as the source segment.
|
| Modifier and Type | Method and Description |
|---|---|
int |
LanguageToolConnector.checkSegment(URI docId,
String subDocId,
Segment srcSeg,
Segment trgSeg,
ITextUnit tu) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExtractionVerificationUtil.compareSegments(Segment seg1,
Segment seg2)
Compares two Segments.
|
| Modifier and Type | Method and Description |
|---|---|
long |
WordCounter.getWordCount(Segment seg) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RepetitionAnalysisStep.checkSegments(Segment sseg,
Segment tseg) |
| Constructor and Description |
|---|
SentenceAligner(List<AlignmentScorer<Segment>> scorerList) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseTerminologyConnector.populateSegmentsWithGlossary(int segmentIndex,
Segment sourceSegment,
Segment targetSegment,
List<TerminologyQueryResult> queryResults) |
| Modifier and Type | Method and Description |
|---|---|
static long |
WordCounter.count(Segment segment,
LocaleId language)
Counts words in a given segment.
|
protected long |
WordCountStep.count(Segment segment,
LocaleId locale) |
static long |
WordCounter.getCount(Segment segment)
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(Segment segment)
Returns the character count information stored by CharacterCountStep in a given segment of the source part of a given text unit.
|
protected void |
CharacterCountStep.removeFromMetrics(Segment seg,
String metricName) |
protected void |
CharacterCountStep.saveToMetrics(Segment seg,
CharacterCounter.Counts count) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
GMXProtectedWordCountStep.count(Segment segment,
LocaleId locale) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
TokenCountStep.count(Segment segment,
LocaleId locale) |
protected long |
TokenCharacterCountStep.count(Segment segment,
LocaleId locale) |
protected abstract long |
BaseCountStep.count(Segment segment,
LocaleId locale) |
protected long |
AltAnnotationBasedCountStep.count(Segment segment,
LocaleId locale) |
long |
BaseCounter.doGetCount(Segment segment) |
static long |
BaseCounter.getCount(Segment segment,
String metricName) |
protected Tokens |
TokenCountStep.getTokens(Segment segment,
LocaleId locale) |
protected void |
BaseCountStep.removeFromMetrics(Segment seg,
String metricName) |
protected void |
BaseCountStep.saveToMetrics(Segment seg,
long count) |
Copyright © 2021. All rights reserved.