NER port prepare_data to prepare_textdata
"import os\n",
"import spacy\n",
"import random\n",
- "from arcgis.learn import prepare_data\n",
+ "from arcgis.learn import prepare_textdata\n",
"from arcgis.learn.text import EntityRecognizer"
]
},
},
"outputs": [],
"source": [
- "data = prepare_data(path=json_path, dataset_type='ner_json',class_mapping={'address_tag':'Address'})"
+ "data=prepare_textdata(path=json_path, task=\"entity_recognition\", dataset_type='ner_json', class_mapping={'address_tag':'Address'})"
]
},
{
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.9"
+ "version": "3.9.11"
}
},
"nbformat": 4,
