# Identifying and configuring replacement of entity types

## Syncing files to detect entity values <a href="#sync-files" id="sync-files"></a>

Next, you run a scan on the files to identify values for Textual entity types. To start the scan, click **Sync files**.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FxpcQUlxJ3PchjRR8JaYm%2FItemSyncFilesOption.png?alt=media&#x26;token=1fdd36a3-51dd-407d-a09f-74613ab6a518" alt=""><figcaption><p>Sync files option to start the file scan</p></figcaption></figure>

You can cancel and then restart the scan.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FerxLSumOjphoTbCxDDQR%2FItemCancelSyncOption.png?alt=media&#x26;token=e6fd8cb5-6aa1-4291-a09d-1b7f9f6b5bc6" alt=""><figcaption></figcaption></figure>

Based on the scan, Textual generates a list of the detected entity types with the number of values detected across all of the files.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FtiGLPLsZhZ1r5pomacvn%2FFileScanDetectedEntityTypes.png?alt=media&#x26;token=9ad6b294-ee57-4e1d-93f6-023dd6ad0220" alt=""><figcaption><p>Detected entity types in the Textual item files</p></figcaption></figure>

## Previewing a file

To view the file content:

1. Click **Browse**.
2. Select the lakehouse where the source files are located.
3. In the source lakehouse, navigate to the file.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FgxP3bAKJpZieFqa9zN3N%2FFileWithOriginalValues.png?alt=media&#x26;token=b43e7df2-752c-4015-829d-0496cfd1962d" alt=""><figcaption><p>Content of an input file</p></figcaption></figure>

## Configuring entity type handling <a href="#entity-type-handling" id="entity-type-handling"></a>

On the **Entity types from scanned files** page, for each entity type, you configure how the detected values appear in the redacted files.

By default, the handling option is **Off**, which means that the values are not replaced, and remain as is in the output files.

The other options are:

* **Redaction -** Replaces each value with the name of the entity type, followed by a unique identifier for the value. For example, the name `John` is replaced with something like `[NAME_GIVEN_ab15c7]`.
* **Synthesis -** Replaces each value with a different realistic value. For example, the name `John` is replaced with `Michael`.

### Selecting the handling option for a specific entity type <a href="#handling-option-single" id="handling-option-single"></a>

To select the handling option for a specific entity type:

1. In the **Configuration** column, click the dropdown for the entity type.
2. From the dropdown list, select the handling option.

### Assigning the same handling option to all of the entity types <a href="#handling-option-multiple" id="handling-option-multiple"></a>

To assign the same handling option to all of the entity types:

1. Click **Bulk Edit Configuration**.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FkLlJm0WwqslxCkGdcgCK%2FBulkEditConfiguration_Redaction.png?alt=media&#x26;token=c165b080-7bfe-4196-9fce-30ae10cbe5b7" alt=""><figcaption><p>Bulk Edit Configuration dropdown list to select the handling option for all of the entity types</p></figcaption></figure>

2. Select the handling option to assign.
