Exporting and importing custom entity types
You can export a custom entity type to an encrypted file.
You can then import the entity type into another instance of Textual.
Exporting an entity type
Exporting a regex-based type
To export a regex-based entity type, on the Entity Types page, click the export icon for the entity type.
Exporting a model-based type
For a model-based type, the export option is available from both the Entity Types page and the entity type details.
When you export the type, you can either export:
The full entity type configuration, including the test and training data.
The entity type without the test and training data.
If you export a model-based entity type without the test and training data, then after you import it, you cannot change the entity type configuration. You can only select the trained model to use.
Entity Types page
From the Entity Types page, T=to export a model-based custom entity type:
Click the export icon for the entity type.
Either:
To export the full configuration, including the test and training data, select Export.
To export the entity type without the test and training data, select Export without data.

Entity type details
From the details page for an entity type, to export the entity type:
Click the actions menu next to the entity type name:
Either:
To export the full configuration, including the test and training data, select Export entity type.
To export the entity type without the test and training data, select Export entity type without data.

Copying the encryption key
After it downloads the custom entity type to the encrypted file, Textual displays the encryption key that was used to encrypt the file, and that you will need when you import the entity type.
To copy the key, click the copy icon.

Importing an exported entity type
After you export a custom entity type, you can import it into another instance of Textual.
When you import an entity type, you are prompted to provide the encryption key that Textual provided during the import.
You cannot use the import to update or replace an existing entity type. If there is already an entity type with the same name, the import fails.
For an imported model-based type, the progression tracker reflects the status of the type. However, regardless of whether the imported entity type was complete and had a published model, it is does not have a published model when it is imported. After the import, you can update the entity type to identify a published model.
To import an exported custom entity type:
On the Custom Entity Types page, click Import type, then select Exported entity type.
On the Import Entity panel, to search for and select the exported file, click Choose file.

In the Decryption key field, paste the encryption key that you copied during the export.
Click Import.
Last updated
Was this helpful?