The Trados cloud platform will be undergoing maintenance on Saturday, 9th May 2026 between 05:00 to 17:00 UTC. During this time, you will not be able to log in to the Trados platform.

Is there a way to bulk apply segmentation rules to multiple translation memories?

Hi,

In my business I have dozens of translation memories in various language pairs. I would like to use custom segmentation rules for all TMs, especially to force segmentation on TAB (".\t+") and manual line break (".[\n]+"). Now I am faced with a problem how to do this efficiently. I do not fancy opening each TM in TM View and editing Language Resources.

Initially I was thinking of doing a bulk upgrade (using the tool in SDL Studio 2019) for all TMs for a given language pair and apply segmentation rules there, but it appears you can only apply segmentation rules that already exist in one of the translation memories for a given language pair. There is no option to open segmentation rules saved to a file or even enter the rules manually. Hence my question: Is there a way to bulk apply segmentation rules to multiple translation memories? Any ideas?

While thinking about this I also made a discovery that sdltm is not a proprietary format but rather SQLite database file, which can be easily opened and manipulated.

I found a table called "resources" and there is one record in it, clearly containing segmentation rules in the column called "data". The TMs that have default segmentation rules also have this table but it contains no records.

Screenshot of a database table named 'resources' with columns for id, guid, type, language, and data. The table shows one record with values '1', 'BLOB', '4', 'pl-PL', and an XML version tag in the data column.

I experimented and tried to add a new record in a TM that does not have any segmentation rules, but this does not work. There is an error when I attempt to open segmentation rules in TM View. Perhaps the column "guid" contains not just a random number but an ID that is linked to some other tables?

Anyway, I would really appreciate any help.

Best,

Mariusz



Generated Image Alt-Text
[edited by: Trados AI at 8:44 PM (GMT 0) on 28 Feb 2024]
emoji
Parents Reply Children
No Data