Skip to content

Commit ccca2e8

Browse files
author
Atma Mani
authored
Merge pull request #1084 from akhilnegi/NER_sample_6858
Fixing 6858 - modified datetime import
2 parents dce6af0 + 32a63ee commit ccca2e8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

samples/04_gis_analysts_data_scientists/information-extraction-from-madison-city-crime-incident-reports-using-deep-learning.ipynb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,21 @@
8181
},
8282
{
8383
"cell_type": "code",
84-
"execution_count": 1,
84+
"execution_count": 3,
8585
"metadata": {},
8686
"outputs": [],
8787
"source": [
88-
"import re\n",
89-
"import os\n",
9088
"import pandas as pd\n",
9189
"import zipfile,unicodedata\n",
9290
"from itertools import repeat\n",
9391
"from pathlib import Path\n",
94-
"from datetime import datetime\n",
95-
"\n",
9692
"from arcgis.gis import GIS\n",
9793
"from arcgis.learn import prepare_data\n",
9894
"from arcgis.learn.text import EntityRecognizer\n",
99-
"from arcgis.geocoding import batch_geocode"
95+
"from arcgis.geocoding import batch_geocode\n",
96+
"import re\n",
97+
"import os\n",
98+
"import datetime"
10099
]
101100
},
102101
{
@@ -1572,7 +1571,7 @@
15721571
"outputs": [],
15731572
"source": [
15741573
"# This will take few minutes to run\n",
1575-
"madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.now().microsecond), \n",
1574+
"madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.datetime.now().microsecond), \n",
15761575
" tags='nlp,madison,crime', city='Madison', \n",
15771576
" region='WI', address_col='Address')"
15781577
]
@@ -1695,7 +1694,7 @@
16951694
" {\"xmin\":-10091700.007046243,\"ymin\":5225939.095608932,\n",
16961695
" \"xmax\":-9731528.729766665,\"ymax\":5422840.88047145,\n",
16971696
" \"spatialReference\":{\"wkid\":102100,\"latestWkid\":3857}}},\n",
1698-
" output_name=\"crime_hotspots_madison\" + str(datetime.now().microsecond))"
1697+
" output_name=\"crime_hotspots_madison\" + str(datetime.datetime.now().microsecond))"
16991698
]
17001699
},
17011700
{

0 commit comments

Comments
 (0)