> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Label documents in Advanced Designer

> Label documents to train Advanced Designer skills — manually or by importing labeled documents from skill training sets, manual review, or ABBYY FlexiCapture.

To train and test a skill, you need labeled documents — documents whose field locations and data types are explicitly marked. The fastest way to get a labeled set is to label documents manually, but that's time-consuming, especially for [Deep Learning activities](/vantage/documentation/advanced-designer/activities/deep-learning-semi-structured) that need large training sets. To save time, you can reuse labeled documents from skills you've already built, from manually reviewed processing results, or from ABBYY FlexiCapture.

## Label documents manually

For each uploaded document, mark out the field locations and specify the data type each field is expected to contain. Follow the [labeling guidelines](/vantage/documentation/advanced-designer/labeling/guidelines) for reliable training results.

## Reuse labeled documents from another source

You can import labeled documents from three sources. In each case, export the labeled documents from the source to a folder, and then import that folder into your skill on the **All Documents** set.

| Source                               | Best for                                        | Export action                                                                                                         |
| :----------------------------------- | :---------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------- |
| Skill training set                   | Reusing your own labels for a new skill version | **Export Set with Labeling** on the document set                                                                      |
| Manually reviewed processing results | Labels created during operations                | Configure field-data + image exports                                                                                  |
| FlexiCapture                         | Reusing labels from earlier FlexiCapture work   | See [Import labeled documents from FlexiCapture](/vantage/documentation/advanced-designer/labeling/import-from-flexi) |

### Skill training set

When you publish a skill for production, you usually remove the training set and keep only a few sample documents in the published version. To reuse the same training set for a new version of the skill, export it before publishing.

To export, click the more icon next to the document set name and choose **Export Set with Labeling**. The destination folder contains:

* `documentdefinition.json`
* `skillsettings.json`
* A `<Document name>` subfolder for each document, containing the document images, `documentinfo.json`, and `labeling.json`

### Manually reviewed processing results

Manual review produces labeled documents as a side effect. Set up exports of:

* **Field data** to JSON with the **Values, metadata, and field structure for each document** option enabled.
* **Document images** in any supported image format.

The destination folder contains one subfolder per transaction. Each `<Transaction ID>` subfolder contains:

* `<Applied skill name>.json` with the field data.
* Exported images: `<Applied skill name>.pdf`, `<Applied skill name>.tiff`, or a `<Applied skill name>/Pages` subfolder with `page_*.jpg` files.

### FlexiCapture

You can reuse documents labeled earlier in ABBYY FlexiCapture — see [Import labeled documents from FlexiCapture](/vantage/documentation/advanced-designer/labeling/import-from-flexi) for the format and procedure.

### Import the labeled documents

Once you have an export folder from any of the sources above, import it into your skill:

<Steps>
  <Step title="Open the All Documents set">
    On the **Documents** tab, select the **All Documents** set.
  </Step>

  <Step title="Choose Import Labeled Documents From Folder">
    Click the drop-down arrow next to **Upload** and choose **Import Labeled Documents From Folder…**.
  </Step>

  <Step title="Select the export folder">
    Select the folder you created with the export procedure for your source.
  </Step>
</Steps>

<Warning>
  Don't change the folder that was created during export. Renaming files or altering the subfolder structure can break the import.
</Warning>

<Note>
  **If a document with the same name already exists,** Advanced Designer asks how to handle the duplicate:

  * **Update Labeling** — overwrites field locations and settings on identically-named fields, and adds any fields present only in the imported document.
  * **Import As New Documents** — renames the duplicates and imports them with their labeling intact.
</Note>

## Related topics

* [Labeling guidelines](/vantage/documentation/advanced-designer/labeling/guidelines)
* [Import labeled documents from FlexiCapture](/vantage/documentation/advanced-designer/labeling/import-from-flexi)
* [Documents tab in Document skills](/vantage/documentation/advanced-designer/document-skills/documents)
* [Deep Learning activity for semi-structured documents](/vantage/documentation/advanced-designer/activities/deep-learning-semi-structured)
