From 94b257d331985546afbad40bf300a1132289e67b Mon Sep 17 00:00:00 2001 From: DaveMorais Date: Mon, 29 Oct 2018 15:35:55 -0400 Subject: [PATCH] Changed separator to comma --- util/crawler.py | 5 +---- util/util.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/util/crawler.py b/util/crawler.py index 88b6c2a..c77e1c9 100644 --- a/util/crawler.py +++ b/util/crawler.py @@ -4,6 +4,7 @@ import sys import time + def get_publication(list_authors): ''' @@ -48,7 +49,6 @@ def _splitter(author, pub): return True - def _normalize_names(pub): ''' @@ -70,7 +70,6 @@ def _normalize_names(pub): authors = record[1].split(';') authors_corrected = list() - for author in authors: # Capitalize and Remove preposition and hifens from names @@ -104,7 +103,6 @@ def _normalize_names(pub): list_of_correct_names = list() - for first_name in first_names: if first_name == '': @@ -134,4 +132,3 @@ def _normalize_names(pub): print("|".join(record), end="\n\n") return True - diff --git a/util/util.py b/util/util.py index 77cce8c..a459faa 100644 --- a/util/util.py +++ b/util/util.py @@ -6,5 +6,4 @@ def get_list_autor_id(file_name): ''' with open(file_name, 'r') as file_obj: - return [(line[0], line[1]) for line in (line.strip().split(",") for line in file_obj if line.strip())]