Edit segmentation rules |
The Edit segmentation rule set dialog allows you to make changes to the selected set of segmentation rules. It is important that you cannot edit the default set of segmentation rules; first you have to clone it and then you can edit the cloned copy.
Invoking
You can invoke the Edit segmentation rule set dialog from the Segmentation rules category of the Settings pane in Project home, or the Segmentation rules pane of the Resource console, by selecting the set you wish to edit, and clicking the Edit command
The Edit segmentation rule set dialog consists of two tabs: Segmentation and Custom lists.
Segmentation tab
This tab allows you to see and edit the rules used for segmentation of imported translation documents.
The tab has two areas, Rules on the left and Exceptions on the right. Each of these areas contains a list view showing the current rules and a text field that is used to enter a new rule or modify an existing one.
Note: Before you edit the custom lists or their items, make sure you are familiar with the concept of segmentation and the logic of regular expressions.
Rules area:
· | Add: Click this button to add a segmentation rule after entering the rule to the text field below the list view. |
· | Change: Click this button to modify a rule after selecting it in the list view and editing it in the text field below. |
· | Delete: Click this button to delete a rule after selecting it in the list view. |
Exceptions area:
· | Add: Click this button to add a segmentation exception rule after entering the rule to the text field below the list view. |
· | Change: Click this button to modify an exception rule after selecting it in the list view and editing it in the text field below. |
· | Delete: Click this button to delete an exception rule after selecting it in the list view. |
· | Preview: Click this button to open the Segmentation preview dialog, which shows how sample text is segmented if the current segmentation rules are applied. |
Custom lists tab
This tab allows you to see and edit custom lists. Customs lists are a customizable extension of regular expressions used to define segmentation rules on the Segmentation tab.
The tab has two areas, Custom lists on the left and List items on the right. Each of these areas contains a list view and a text field. In the Custom lists area, the list view shows the existing custom lists, while the text field below is used to enter a new custom list or modify an existing one. In the List items area, the list view shows the existing custom list items, while the text field below is used to enter a new item or modify an existing one.
Note: Before you edit the custom lists or their items, make sure you are familiar with the concept of segmentation and the logic of regular expressions.
Custom lists area:
· | Add: Click this button to add a custom list after entering its name to the text field below the list view. |
· | Change: Click this button to modify a custom list after selecting it in the list view and editing it in the text field below. |
· | Delete: Click this button to delete a custom list after selecting it in the list view. |
List items area:
· | Add: Click this button to add a list item after entering it to the text field below the list view. |
· | Change: Click this button to modify a list item after selecting it in the list view and editing it in the text field below. |
· | Delete: Click this button to delete a list item after selecting it in the list view. |
· | Preview: Click this button to open the Segmentation preview dialog, which shows how a few sample sentences are segmented if the current segmentation rules, which may use custom lists, are applied. |
Importing and exporting segmentation rules
memoQ supports the Segmentation Rule eXchange (SRX) standard that enables the exchange of segmentation rules between different tools. However, memoQ’s segmentation exception handling is more sophisticated than that described in SRX, and therefore two export options are available, one that exports into memoQ and one that exports into other tools.
· | Import SRX: Click this button to import segmentation rules from an SRX file into the current rule set. |
· | Export SRX: Click this button to export the current segmentation rule set into an SRX file. |
o Optimized export: Select this radio button to export segmentation rules for an SRX-enabled tool other than memoQ, and specify where you want to save the SRX file.
o Detailed export: Select this radio button to export segmentation rules for another copy of memoQ, and specify where you want to save the SRX file.
Navigation
Click OK to close the dialog, saving all changes. Clicking Cancel will close the dialog without saving changes.