Project home - Settings - Segmentation rules
When memoQ imports a document, it splits the document into segments. Normally, a segment is more or less the same as a sentence. But you can use completely different segments, too.
A segmentation rule set tells memoQ how to split a document into segments.
The Segmentation rules tab of the Settings pane lists the segmentation rule sets for the source language of the project. You can choose one to use with the project.
Choose segmentation rules before you import documents: When memoQ imports a document, it uses the segmentation rule set that is already in the project. You can't "re-segment" a document when you change the segmentation rules.
How to get here
- From the Dashboard, create or open a project. Or, check out a project from a memoQ TMS.
- Under Project home, click Settings. The Settings pane appears, with the General tab.
- Click the Segmentation rules icon. It looks like this:
The Segmentation rules tab appears.
What can you do?
- In the list of segmentation rules, select the one you need to copy.
- Under the list of segmentation rules, click Clone/use new.
- The Clone segmentation rule set into a new resource window opens. It's the same as the Create new segmentation rule set window. You can't set the language of the rule set because it's always the same as the source language of the project.
- Type a name for the segmentation rule set. You may also type a description.
To learn more: See Help about the Create new segmentation rule set window.
- Click OK.
The segmentation rule set appears in the list at the top. Its check mark will be checked - it will be ready to use in the project.
You may need an empty segmentation rule set if you do not want memoQ to split the documents into segments. This does not mean that the document will not be segmented. When memoQ imports documents of certain files, it will always start a new segment when there is a new paragraph (example: Word document), or a new cell (example: Excel), or a new structural element (example: HTML or XML).
- Under the list of segmentation rules, click Create/use new.
- The Create new segmentation rule set window opens. You can't set the language of the rule set because it's always the same as the source language of the project.
- Type a name for the segmentation rule set. You may also type a description.
To learn more: See Help about the Create new segmentation rule set window.
- Click OK.
The segmentation rule set appears in the list at the top. Its check mark will be checked - it will be ready to use in the project.
To use a segmentation rule set, you need to add it to the project before you import any documents. A project always has exactly one segmentation rule set.
If you do not make a change, memoQ will always use the Default segmentation rule set for the source language of the project. To use another:
- In the list of segmentation rule sets, find the rule set you need.
- Click its check box on the left.
The segmentation rule set moves to the top of the list. The check box of the previous one will be cleared.
If the project already contains documents: You need to reimport them to re-segment them with the new rule set. If the documents contained translated segments, you also need to X-translate or pre-translate them after the reimport.
Normally, memoQ will take segmentation rules from your own computer. However, you can use online segmentation rules from memoQ TMSs that you have access to.
To view the segmentation rule sets from a memoQ TMS or from a memoQ TMS cloud:
- On the Project ribbon, there is a memoQ TMS icon, or a memoQ TMS dropdown. Click the icon or dropdown.
- memoQ will show the segmentation rules from that server.
You must have permission for the segmentation rule sets: It is not enough to have access to the memoQ TMS. To use a segmentation rule set, you need at least Use permission over the segmentation rule set itself. If you are not sure, contact the owner of the memoQ TMS.
- To use a segmentation rule set from a memoQ TMS, simply check its check box.
Type or choose the address of the memoQ TMS, and click the Select button.
You may need to log in: If you access this server for the first time, the Log in to server window opens. You need a user name and a password to access the server.
If there are too many segmentation rule sets on the list, you can filter the list. At the top of the Segmentation rules tab, there are filter controls:
- The most efficient way to filter the list is to type a word or two in the Name/description box. It will narrow the list immediately to those segmentation rule sets that have those words in their names or descriptions.
- You can also choose a language. In a project, this does not make much sense because you need a segmentation rule set for the source language of the project.
To sort the list by a detail: Click the header of the column you need. For example, to sort the list by name, click the Name header at the top of the list.
You can export a segmentation rule set into an .mqres file. An .mqres file is an XML file where memoQ saves resources like segmentation rule sets, QA profiles, TM settings etc. These are called light resources because they don't contain a large amount of linguistic data.
To export a segmentation rule set:
- In the list, select the segmentation rule set you need to export.
- Under the list, click Export. A Save As window opens.
Or: Right-click the segmentation rule set. From the menu, choose Export.
- Find a folder and a name for the file, and click Save. memoQ will export all details from the segmentation rule set in the file.
You can also import a segmentation rule set from a .mqres file. When you import an .mqres file, memoQ will always create a new segmentation rule set.
Because memoQ saves all kinds of resources in .mqres files, you need to make sure that your .mqres file contains a segmentation rule set.
To import a segmentation rule set from an .mqres file:
- At the bottom of the Segmentation rules tab, click Import new. An Open window appears.
- Select the .mqres file. Click Open.
- The Import new segmentation rule set window opens. It's the same as the Create new segmentation rule set window.
- memoQ will pick up the name of the rule set from the .mqres file. However, you can give it a new name, and type a new description, too.
- Click OK.
To learn more: See Help about the Create new segmentation rule set window.
- In the list of segmentation rules, select the one you need to edit.
- Under the list of segmentation rules, click Edit.
- The Edit segmentation rule set window opens.
- Change the segmentation rules as necessary. Caution: You may need knowledge of regular expressions to do it.
To learn more: See Help about the Edit segmentation rule set window.
Cannot edit the default rule set: You can't edit the Default segmentation rule set. If you need a resource that you can edit, clone the Default rule set first.
- In the list, select the segmentation rule set.
- Below the list, click Properties.
- The Resource properties window opens. It's the same as the Create new segmentation rule set window.
- If necessary, change the name or the description of the resource. Click OK.
To learn more: See Help about the Create new segmentation rule set window.
When you finish
Your changes are saved automatically.
On the Settings pane, choose another tab.
Or, choose another pane in Project home.
Or, return to your work: Click a document tab at the top of the memoQ window (in the same row as the Project home tab). In most cases, you will return to the translation editor.
Project managers, you can switch windows: You can open several online projects for management. Each online project opens in a separate window. To switch between them and the Dashboard or Project home (if you have a local project open): press and hold down Alt, and press Tab a few times until you get to the window you want. Or: On the Windows taskbar, click the memoQ icon, and then click the window you want to switch to.