Convert Text to Numeric

This tool converts text-based fields in a feature layer to numeric values using AI. It is useful for standardizing data or preparing it for analysis.

Usage

  1. Open ArcGIS Pro and add the .pyt toolbox if you haven't already.
  2. Open the Convert Text to Numeric tool.
  3. Fill in the parameters as described below.
  4. Click Run. The tool will update the specified field with numeric values.

Parameters

NameTypeRequiredDescription
SourceString (Choice)YesAI provider to use (OpenAI, Azure OpenAI, Claude, DeepSeek, Local LLM).
ModelStringNoThe AI model to use. Choices depend on the selected source.
EndpointStringNoCustom endpoint for Azure or local models (if applicable).
Deployment NameStringNoDeployment name for Azure OpenAI (if applicable).
Input LayerFeature LayerYesThe input feature layer containing the text field to convert.
FieldFieldYesThe text field to convert to numeric values.

Tips