Skip to content

Commit 3882781

Browse files
author
Panayiotis Smeros
committed
Removed deprecated files.
1 parent db721c0 commit 3882781

File tree

10 files changed

+15
-338
lines changed

10 files changed

+15
-338
lines changed
File renamed without changes.
File renamed without changes.

src/TheWebConf 2019.ipynb renamed to src/TheWebConf2019.ipynb

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"%matplotlib inline\n",
1010
"%load_ext autoreload\n",
1111
"%autoreload 2\n",
12+
"from pathlib import Path\n",
1213
"from math import sqrt\n",
1314
"\n",
1415
"import numpy as np\n",
@@ -23,9 +24,8 @@
2324
"pd.options.mode.chained_assignment = None\n",
2425
"\n",
2526
"from create_corpus import analyze_url\n",
26-
"from run import scilens_dir\n",
2727
"\n",
28-
"scilens_dir = scilens_dir + 'www2019/'\n",
28+
"scilens_dir = str(Path.home()) + '/Dropbox/scilens/www2019/'\n",
2929
"print_RMSE = False"
3030
]
3131
},
@@ -267,13 +267,6 @@
267267
"sns.despine(left=True, bottom=True)\n",
268268
"fig.savefig(scilens_dir+'figures/crispr.pdf', bbox_inches='tight')"
269269
]
270-
},
271-
{
272-
"cell_type": "code",
273-
"execution_count": null,
274-
"metadata": {},
275-
"outputs": [],
276-
"source": []
277270
}
278271
],
279272
"metadata": {
@@ -293,7 +286,7 @@
293286
"name": "python",
294287
"nbconvert_exporter": "python",
295288
"pygments_lexer": "ipython3",
296-
"version": "3.7.3"
289+
"version": "3.6.8"
297290
},
298291
"toc": {
299292
"base_numbering": 1,

src/articles_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
import os
23
import re
34
import string
@@ -16,11 +17,12 @@
1617

1718
from create_corpus import analyze_url, read_graph
1819
from papers_ops import predict_similarity
19-
from run import scilens_dir
2020
from tweets_ops import attach_social_media_details
2121

2222
############################### CONSTANTS ###############################
2323

24+
scilens_dir = str(Path.home()) + '/Dropbox/scilens/'
25+
2426
#Predefined keyword lists
2527
personKeywordsFile = scilens_dir + 'small_files/keywords/person.txt'
2628
studyKeywordsFile = scilens_dir + 'small_files/keywords/study.txt'

src/create_corpus.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
import os
23
import random
34
import re
@@ -15,10 +16,10 @@
1516
from pyspark import SparkConf
1617
from pyspark.sql import Row, SparkSession
1718

18-
from run import scilens_dir
19-
2019
############################### CONSTANTS ###############################
2120

21+
scilens_dir = str(Path.home()) + '/Dropbox/scilens/'
22+
2223
#Spark conf
2324
#conf = {'memory':8, 'cores':4, 'partitions':4*20}
2425
conf = {'memory':64, 'cores':24, 'partitions':24*20}

src/deprecated.py

Lines changed: 0 additions & 120 deletions
This file was deleted.

src/papers_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
import pickle
23
import re
34
from math import sqrt
@@ -18,13 +19,14 @@
1819
from sklearn.svm import SVC
1920

2021
from create_corpus import read_graph
21-
from run import scilens_dir
2222

2323
nlp = None
2424
tokenizer = None
2525

2626
############################### CONSTANTS ###############################
2727

28+
scilens_dir = str(Path.home()) + '/Dropbox/scilens/'
29+
2830
#Topic Discovery parameters
2931
numOfTopics = 16
3032
max_iter = 100

0 commit comments

Comments
 (0)