Skip to content
Snippets Groups Projects
Commit 05afe1e1 authored by Konrad Wojtasik's avatar Konrad Wojtasik
Browse files

Update easymatcher_worker.py

parent 8a049315
1 merge request!4Resolve "Read not only .txt files"
Pipeline #11441 failed with stages
in 5 minutes and 6 seconds
......@@ -47,8 +47,6 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
with open(document_path, "r", encoding="utf-8") as _df:
for line in _df:
line_data = json.loads(line)
# document['text'] = line_data['text']
# document['label'] = []
_f.write(json.dumps(line_data) + "\n")
else:
with open(document_path, "r", encoding="utf-8") as _df:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment