One off changing Segmentation rules
For a client I need to make a quotation for a huge Excel sheets, that contains a colomn with thousands and thousands of terms, separated by comma's (even many oper cell). These thousands of terms are repeting themselves endlesslee.
In order to get a sharp quotation, we want to make a calculation based on these repetitions, trying to establish 100% matches.
For this particular reason we want to change the segmentation rules in such a way, that if in a Excel cell a comma is found, a new segment will be made.
Can anybody explain to me how I can do this?
Kind regards,
Pieter Cramer
-
Hi Pieter,
Basically, you need to customize the segmentation rules.
Download the language-specific rules for from Wordbee Translator (Settings > Segmentation). Edit the rules and upload with a new name. Then when marking a file for online translation make sure to choose your new rule.
A rule that breaks at word boundaries (regex = \b) might look like the following.
Note that this was not tested and is just an idea to get started.
<rule break="yes">
<beforebreak>.+</beforebreak>
<afterbreak>\b</afterbreak>
</rule>The SRX specification is at:
http://web.archive.org/web/20090709131535/http://www.lisa.org/fileadmin/standards/srx20.html
A summary of steps to create your own rules:
https://wordbee.zendesk.com/hc/en-us/articles/216111108-SRX-Segmentation-Rules-XML
Hope this helps,
Stephan
0 -
For me, the open source srx editor Ratel was helpfull, also in testing new segmatation rules.
see:
http://okapiframework.org/wiki/index.php?title=Ratel
0
Please sign in to leave a comment.
Comments
2 comments