Skip to content

Commit 27ec739

Browse files
committed
NER port prepare_data to prepare_textdata
1 parent 4af0083 commit 27ec739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guide/14-deep-learning/how-named-entity-recognition-works.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"import os\n",
236236
"import spacy\n",
237237
"import random\n",
238-
"from arcgis.learn import prepare_data\n",
238+
"from arcgis.learn import prepare_textdata\n",
239239
"from arcgis.learn.text import EntityRecognizer"
240240
]
241241
},
@@ -256,7 +256,7 @@
256256
},
257257
"outputs": [],
258258
"source": [
259-
"data = prepare_data(path=json_path, dataset_type='ner_json',class_mapping={'address_tag':'Address'})"
259+
"data=prepare_textdata(path=json_path, task=\"entity_recognition\", dataset_type='ner_json', class_mapping={'address_tag':'Address'})"
260260
]
261261
},
262262
{
@@ -1488,7 +1488,7 @@
14881488
"name": "python",
14891489
"nbconvert_exporter": "python",
14901490
"pygments_lexer": "ipython3",
1491-
"version": "3.7.9"
1491+
"version": "3.9.11"
14921492
}
14931493
},
14941494
"nbformat": 4,

0 commit comments

Comments
 (0)