Added notifications

This commit is contained in:
Luka 2019-12-21 15:00:48 +01:00
parent dd36388707
commit 0b3cad90df

View File

@ -151,7 +151,7 @@ def create_trees(input_path, internal_saves, feats_detailed_dict={}, save=True):
hash_object = hashlib.sha1(input_path.encode('utf-8')) hash_object = hashlib.sha1(input_path.encode('utf-8'))
hex_dig = hash_object.hexdigest() hex_dig = hash_object.hexdigest()
trees_read_outputfile = os.path.join(internal_saves, hex_dig) trees_read_outputfile = os.path.join(internal_saves, hex_dig)
print(Path(input_path).name)
if not os.path.exists(trees_read_outputfile) or not save: if not os.path.exists(trees_read_outputfile) or not save:
train = pyconll.load_from_file(input_path) train = pyconll.load_from_file(input_path)