User GuidesAPI ReferenceRelease Notes
Doc HomeHelp CenterLog In
User Guides

Exporting and Importing a Categorization Model

Export a categorization model and import it to another instance of Tamr.

1858

The ZIP file contains all of the files built by the model based on that unified dataset, including taxonomy, and categorization information. To obtain the file, run the curl command to get the model, as follows:

curl -X GET --header 'Accept: application/json' --header 'Authorization: BasicCreds <AUTH>' 'http://api:9100/api/classification/exportModel/{unified_dataset}' > categorizationModel.zip

Export the Model

To export the categorization model:

On the source instance, run GET /classification/exportModel/{dataset}
The dataset is the name of the unified dataset of the source instance Categorization project.

Import the Model

Before Importing the zip file, verify that the following required files are included:

  • manifest.json
  • categorizationInfo.json
  • taxonomy.json
  • thistogramBoundaries.avro
  • modelDataset.avro

To Import the Categorization Model:

On the target instance, run POST /classification/importModel/{dataset}

The dataset is the name of the unified dataset of the target instance Categorization project and categorizationModel is the file path of the .zip file created from the source instance in the previous step.