Segmentation profiles

Choose where files are split into segments: a segmentation profile per project and template, with break and no-break rules, abbreviation lists, a live preview, and SRX import and export.

How a file is split

A file is split in two steps. First its structure gives the blocks: paragraphs, table cells, list items, JSON values, XML elements. Then a segmentation profile splits the text inside each block into sentences. A list number or letter that opens a block ("1.", "a)", "iv.") stays with the sentence after it. A profile never joins two blocks. File formats says which formats are split into sentences.

Each project and template has a segmentation profile, and a file is split with its project's profile when it is uploaded. Each file keeps the rules it was uploaded with: editing or deleting a profile, or picking another one for the project, changes how files uploaded afterwards are split. Files already in a project keep their segments, and their translated files are built with the same rules. A draft is the one exception: if you change its source language or its profile before you publish it, its files are split again with the profile it has then.

Pick a project's profile

Segmentation profile is in the File configurations section of the New project page, of a project's Settings tab and of the template editor, next to the QA profile. Owners, admins and project managers pick it there. The icon after the field opens the selected profile's page in a new tab.

The built-in profiles

Default, Conservative, English, German, Spanish, French, Italian, Portuguese, Russian and Thai come with OpenLoc. They are read-only: to change one, duplicate it.

Open the Segmentation profiles tab

Open File configurations in the left menu; it opens on the Segmentation profiles tab, next to the File import settings tab (see File configurations). Owners, admins and project managers see it and may create, edit, duplicate, delete and import profiles. Linguists do not see it.

The list shows every profile with its languages (Any for the language-neutral ones) and its mode. A built-in profile has (built-in) after its name, here and in the profile list of a project or template. Click a row to open it.

Create a profile

  1. Click Duplicate on the row of the profile to start from, or New profile to start empty.
  2. Enter a Name and pick the Source languages: one or more languages, or Any language. Picking Any language clears the languages, and picking a language clears Any language.
  3. Change the rules, the mode and the abbreviation lists (below), and watch the Preview.
  4. Click Create. The profile list opens again, with the new profile in it.

A project or template uses the new profile once you pick it in its settings. You cannot change a profile's language to one that a template using it does not suit: pick another profile for the template first.

Edit the rules

The abbreviation lists are checked before the rules. Click Save to keep your changes; the profile list opens again. If someone else saved the profile while you were editing, OpenLoc says so: click Reload to see their version, then make your changes again.

Check the rules in the preview

The Preview splits the sample text with the rules as they are on screen, saved or not. Type or paste your own text into the box. The numbered list shows the segments. In the text above it, a scissors mark shows each break and a link mark each place a rule or a list kept whole; hover over a mark to see which rule (by its number), which abbreviation, or a list marker at the start of a line decided it.

Delete a profile

Click the trash icon on the profile's row. Files already uploaded keep their segments. Projects that use the profile lose it: their Settings tab asks for another profile, and an upload is refused with "This project has no segmentation profile" until someone picks one. A profile that a template uses cannot be deleted: pick another profile for the template first.

Import and export SRX

SRX is the segmentation rules format other translation tools read and write.

Related