Gå til hovedinnhold

Segmentation tool

The Segmentation tool splits a block's text into sentence-level segments. Segmentation determines the unit of translation and of content-memory matching, so consistent segmentation is important for leverage and review. By default the tool segments source text using built-in SRX-style rules that handle common sentence boundaries and abbreviations; rules can also be loaded from an SRX file.

The number of segments produced is recorded on each block. Already-segmented text is left alone unless re-segmentation is requested. Target text can be segmented independently, with its own rules file.

IDsegmentation
SourceBuilt-in
Categorytext-processing
Cardinalitymonolingual
Tagstext-processing

Parameters

ParameterTypeDefaultDescription
enginestringsrxWhich segmenter to use; the default needs no configuration
layerstringSegmentation overlay layer name; empty uses the engine's natural layer
overwriteSegmentationbooleanfalseRe-segment already-segmented blocks replacing previous segmentation
providerstringAI provider id (anthropic
rulesPathstringPath to a custom SRX 2.0 rules file (overrides the built-in ruleset)
modelstringModel name
segmentSourcebooleantrueSegment the source text
treatIsolatedCodesAsWhitespacebooleanfalseTreat isolated inline codes as whitespace during segmentation
credentialstringStored credential name
segmentTargetbooleanfalseSegment existing target text
trimLeadingWhitespacebooleantrueExclude leading whitespace from each segment span
instructionstringOptional guidance for how to chunk
trimTrailingWhitespacebooleantrueExclude trailing whitespace from each segment span
maxChunkRunesintegerSoft upper bound on chunk size in characters (0 = model default)
renumberCodesbooleanfalseRenumber inline code IDs when materializing segments to a bilingual format

Configure it live

Configuration
Loading form…

Examples

Segment source text with default rules

Split source into sentences using the built-in rules.

segmentSource: true

Re-segment with a custom SRX file

Replace existing segmentation using project-specific rules.

segmentSource: true
overwriteSegmentation: true
sourceSrxPath: ./rules/segmentation.srx

Processing notes

  • Operates on translatable blocks only; non-translatable blocks pass through unchanged.

  • The resulting segment count is written to a block property.

Limitations

  • The built-in rule set targets common Latin-script sentence boundaries; non-Latin scripts may need a custom SRX file.

← Back to the Tool Reference