Skip to content

Commit 734f10b

Browse files
committed
Implement relative imports of json files.
1 parent 0f21b10 commit 734f10b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"outputs": [],
3636
"source": [
3737
"# load the list of sectors/names to be used as reference\n",
38-
"with open('C://Users/11max/PycharmProjects/Mapping_ML/Data/IOIC_sectors.json','r') as f:\n",
38+
"with open('Data/IOIC_sectors.json','r') as f:\n",
3939
" IOIC_sectors = json.load(f)\n",
4040
"# load the reference list into the machine learning model\n",
4141
"IOIC_embeddings = model.encode(IOIC_sectors)"

mapping_with_exiobase.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 2,
5+
"execution_count": 1,
66
"id": "154954aa",
77
"metadata": {},
88
"outputs": [],
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 13,
17+
"execution_count": 2,
1818
"id": "78a85a10",
1919
"metadata": {},
2020
"outputs": [],
@@ -29,7 +29,7 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"with open('C://Users/11max/PycharmProjects/Mapping_ML/Data/exiobase_sectors.json','r') as f:\n",
32+
"with open('Data/exiobase_sectors.json','r') as f:\n",
3333
" exio_sectors = json.load(f)\n",
3434
"exio_embeddings = model.encode([i[1] for i in exio_sectors])"
3535
]

mapping_with_iw.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"with open('C://Users/11max/PycharmProjects/Mapping_ML/Data/IW_2.0_flows.json','r') as f:\n",
32+
"with open('Data/IW_2.0_flows.json','r') as f:\n",
3333
" iw_flows = json.load(f)\n",
3434
"iw_embeddings = model.encode(iw_flows)"
3535
]

mapping_with_openIO.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"with open('C://Users/11max/PycharmProjects/Mapping_ML/Data/IOIC_sectors.json','r') as f:\n",
32+
"with open('Data/IOIC_sectors.json','r') as f:\n",
3333
" IOIC_sectors = json.load(f)\n",
3434
"IOIC_embeddings = model.encode(IOIC_sectors)"
3535
]

0 commit comments

Comments
 (0)