Skip to content
Snippets Groups Projects
Commit 3b9d259c authored by Marc Roig Vilamala's avatar Marc Roig Vilamala
Browse files

Removed absolute directory references

parent b981b46f
No related branches found
No related tags found
1 merge request!1Demo branch
...@@ -3,6 +3,6 @@ import sqlite3 ...@@ -3,6 +3,6 @@ import sqlite3
def get_db(): def get_db():
conn = sqlite3.connect('/Users/tom/PycharmProjects/cognistance/db/datasets.db') conn = sqlite3.connect('db/datasets.db')
cursor = conn.cursor() cursor = conn.cursor()
return conn, cursor return conn, cursor
\ No newline at end of file
...@@ -10,7 +10,7 @@ def run_usas_on_text(page): ...@@ -10,7 +10,7 @@ def run_usas_on_text(page):
print('usasoverall page old: ', page) print('usasoverall page old: ', page)
datasetid = page.split('><p>')[0].replace('<div id=', '').replace('"', '').strip() datasetid = page.split('><p>')[0].replace('<div id=', '').replace('"', '').strip()
d = {} d = {}
with open('/Users/tom/PycharmProjects/cognistance/func/usas/usas_overall.txt') as f: with open('func/usas/usas_overall.txt') as f:
for line in f: for line in f:
lineL = line.replace('\n', '').split(' ', 1) lineL = line.replace('\n', '').split(' ', 1)
key = lineL[0].strip() key = lineL[0].strip()
......
...@@ -11,7 +11,7 @@ def run_usasFine_on_text(page): ...@@ -11,7 +11,7 @@ def run_usasFine_on_text(page):
usastag = page.split('__')[0] usastag = page.split('__')[0]
datasetid = page.split('__')[1].split('><p>')[0].replace('<div id=', '').replace('"', '').strip() datasetid = page.split('__')[1].split('><p>')[0].replace('<div id=', '').replace('"', '').strip()
d = {} d = {}
with open('/Users/tom/PycharmProjects/cognistance/func/usas/usas_desc.txt') as f: with open('func/usas/usas_desc.txt') as f:
for line in f: for line in f:
lineL = line.replace('\n', '').split(' ', 1) lineL = line.replace('\n', '').split(' ', 1)
key = lineL[0].strip() key = lineL[0].strip()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment