Skip To Content

Use the model

You can use this model in the Classify Text Using Deep Learning tool available in the GeoAI toolbox in ArcGIS Pro.

Classify text

Complete the following steps to classify text:

  1. Download the Country Classification model from ArcGIS Living Atlas of the World.
  2. Browse to Tools on the Analysis tab.
    Tools on the analysis tab in ArcGIS Pro
  3. Click the Toolboxes tab in the Geoprocessing pane, select GeoAI Tools, and browse to the Classify Text Using Deep Learning tool under Text Analysis.
    Classify Text Using Deep Learning tool
  4. Set the variables on the Parameters tab as follows:
    1. Input Table—The input point, line, or polygon feature class or table containing the text to be classified.
    2. Text Field—The address field within the input feature class or table.
    3. Input Model Definition File—Select the pretrained or fine-tuned model .dlpk file.
    4. Class Label Field—The name of the field that will contain the classified text in the output feature class or table. The default field name is ClassLabel.
    5. Model Arguments (optional)—Change the values of the arguments if required.
      • Sequence_length—Default value is 512. This is the maximum sequence length (at subword level after tokenization) of the training data to be considered for training the model. It is applicable only for models with HuggingFace transformer backbones.
      Classify Text Using Deep Learning Parameters tab
  5. Set the variables on the Environments tab by setting Processor Type as CPU or GPU.

    It is recommended that you select GPU, if available, and set GPU ID to the GPU to be used.

    Classify Text Using Deep Learning Environments tab
  6. Click Run.

    The output layer or table is added to the map. Click Attribute Table to see the output.

    Output Results

In this topic
  1. Classify text