|
9 | 9 | "\n",
|
10 | 10 | "The `arcgis.learn.text` module offers a comprehensive suite of methods for various text processing tasks, including text classification, entity extraction, and text translation. This module leverages powerful models such as `TextClassifier`, `SequenceToSequence`, and `EntityRecognizer`, built upon advanced architectures like BERT, RoBERTa, and T5-Base to deliver high-performance text analysis.\n",
|
11 | 11 | "\n",
|
12 |
| - "Despite the robust capabilities of these pre-built models, there may be scenarios where you might need to create a custom deep learning model or a specialized model not currently supported by the `arcgis.learn.text` module.\n", |
| 12 | + "Despite the robust capabilities of these pre-built models, there may be scenarios where you might need to create a custom deep learning model or a specialized model such as an LLM-based model for standardizing addresses, a sentiment analysis model for specific domains, or a custom entity recognition model that is not currently supported by the `arcgis.learn.text` module.\n", |
13 | 13 | "\n",
|
14 | 14 | "To address these needs, we can use the **Model Extension** feature. This functionality allows you to integrate custom deep learning models seamlessly into the `arcgis.learn` API and the Text Analysis Toolset within the GeoAI Toolbox. By using this feature, you can incorporate your `.dlpk` (Deep Learning Package) file, ensuring your custom model operates within the `arcgis.learn` framework and is accessible via tools like:\n",
|
15 | 15 | "\n",
|
| 16 | + "\n", |
16 | 17 | "1. [Classify Text Using Deep Learning](https://pro.arcgis.com/en/pro-app/latest/tool-reference/geoai/classify-text-using-deep-learning.htm)\n",
|
17 | 18 | "2. [Extract Entities Using Deep Learning](https://pro.arcgis.com/en/pro-app/latest/tool-reference/geoai/extract-entities-using-deep-learning.htm)\n",
|
18 | 19 | "3. [Transform Text Using Deep Learning](https://pro.arcgis.com/en/pro-app/latest/tool-reference/geoai/transform-text-using-deep-learning.htm)\n",
|
19 | 20 | "\n",
|
20 | 21 | "\n",
|
21 |
| - "By following the steps outlined in this documentation, you will be able to create and use custom .dlpk files effectively, enhancing your text analysis tasks with models tailored to your needs. For example, you might need to use a custom LLM model to analyze or automate text processing tasks with the Python API and ArcGIS Pro tools.\n" |
| 22 | + "By following the steps outlined in this documentation, you will be able to create and use custom .dlpk files effectively, enhancing your text analysis tasks with models tailored to your needs.\n" |
22 | 23 | ]
|
23 | 24 | },
|
24 | 25 | {
|
|
74 | 75 | "\n",
|
75 | 76 | "The `initialize` method is called at the start of your Python NLP function. Use this method to load the NLP model and set up any initial configurations.\n",
|
76 | 77 | "\n",
|
77 |
| - "### `getParameterInfo()`\n", |
| 78 | + "### `getParameterInfo`\n", |
78 | 79 | "\n",
|
79 |
| - "The `getParameterInfo()` method specifies the parameters that your NLP function accepts. This includes text inputs and any configuration settings required for processing.\n", |
| 80 | + "The `getParameterInfo` method specifies the parameters that your NLP function accepts. This includes text inputs and any configuration settings required for processing.\n", |
80 | 81 | "\n",
|
81 |
| - "### `getConfiguration()`\n", |
| 82 | + "### `getConfiguration`\n", |
82 | 83 | "\n",
|
83 |
| - "The `getConfiguration()` method describes how the function should handle input processing and generate outputs. It includes details on any pre-processing or post-processing steps necessary for the function.\n", |
| 84 | + "The `getConfiguration` method describes how the function should handle input processing and generate outputs. It includes details on any pre-processing or post-processing steps necessary for the function.\n", |
84 | 85 | "\n",
|
85 |
| - "### `predict()`\n", |
| 86 | + "### `predict`\n", |
86 | 87 | "\n",
|
87 |
| - "The `predict()` method is the core function responsible for converting input text into the desired output. It uses the defined parameters and processing logic to produce the final result.\n" |
| 88 | + "The `predict` method is the core function responsible for converting input text into the desired output. It uses the defined parameters and processing logic to produce the final result.\n" |
88 | 89 | ]
|
89 | 90 | },
|
90 | 91 | {
|
|
394 | 395 | "id": "b68e249e",
|
395 | 396 | "metadata": {},
|
396 | 397 | "source": [
|
397 |
| - "After creating your custom Python NLP function, include a reference to this function in the `.emd` file by specifying it next to the **InferenceFunction** parameter. This step ensures that the Esri Model Definition (EMD) correctly links to your function, enabling it to be utilized within your NLP processing pipeline." |
| 398 | + "After creating your custom Python NLP function, include a reference to this function in the `.emd` file by specifying it next to the **InferenceFunction** parameter. This step ensures that the Esri Model Definition (.emd) correctly links to your function, enabling it to be utilized within your NLP processing pipeline." |
398 | 399 | ]
|
399 | 400 | },
|
400 | 401 | {
|
|
0 commit comments