parent
379af8a04e
commit
e6db3ce584
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ def extract_info_from_ilean(ilean_file, decl_dict, args):
|
||||||
info = []
|
info = []
|
||||||
with codecs.open(ilean_file, "r", "utf-8") as f:
|
with codecs.open(ilean_file, "r", "utf-8") as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
line = line.replace("\r\n", "\n")
|
||||||
array = line[:-1].split("|")
|
array = line[:-1].split("|")
|
||||||
item = {}
|
item = {}
|
||||||
item['category'] = array[0]
|
item['category'] = array[0]
|
||||||
|
|
Loading…
Reference in a new issue