Closed Daremitsu1 closed 2 years ago
Any update on the issue?
@Daremitsu1 it looks like you are using an old version of arcgis python API(1.6.2). You can install deep learning environment on anaconda prompt by using the following steps:
1.conda create -n dl_env
activate dl_env
conda install -c esri arcgis_learn
you can refer to this guide updated here: https://github.com/Esri/arcgis-python-api/blob/master/guide/14-deep-learning/how-named-entity-recognition-works.ipynb
@Daremitsu1 it looks like you are using an old version of arcgis python API(1.6.2). You can install deep learning environment on anaconda prompt by using the following steps: 1.
conda create -n dl_env
2.activate dl_env
3.conda install -c esri arcgis_learn=2.0.0
you can refer to this guide updated here: https://github.com/Esri/arcgis-python-api/blob/master/guide/14-deep-learning/how-named-entity-recognition-works.ipynb
If I am using Google Colab, will the following command do?
conda install -c esri -c fastai -c pytorch -c anaconda arcgis ujson scikit-image=0.15.0 pillow=7.1.2 libtiff=4.1.0 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.0 python=3.7.9 --yes --no-pin
I am following the Named Entity Extraction Workflow with
arcgis.learn
given in the link below: https://developers.arcgis.com/python/guide/how-named-entity-recognition-works/I have created the entity labels using doccano. Example of the doccano file as below: admin.jsonl:
Now I am the following the steps given in the tutorial to read and fetch the json file. While running the code:
data = prepare_data(path=json_path, dataset_type='ner_json')
we are getting the following error:To solve this error, I found a leeway. I tried adding
encoding='cp1252'
. This resulted in the cell running.However when I![image](https://user-images.githubusercontent.com/54842807/167385700-52bce038-81dd-4ddc-abad-bb7d58890a30.png)
data.show_batch()
I am getting the following dataframes:Basically it has not read any of the data. How do I solve it?
Platform (please complete the following information):
1.6.2
] (you can get this by typingprint(arcgis.__version__)
Additional context Add any other context about the problem here, attachments etc.