Skip to content
Snippets Groups Projects
Commit b5554f3e authored by Jakub Gołuch's avatar Jakub Gołuch
Browse files

Merge branch 'master' into '2-read-not-only-txt-files'

# Conflicts:
#   src/easymatcher_worker.py
parents e9bab9a0 61bbc3bb
Branches
1 merge request!4Resolve "Read not only .txt files"
Pipeline #11288 failed with stages
in 6 minutes and 22 seconds
......@@ -54,8 +54,8 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
with open(document_path, "r", encoding="utf-8") as _df:
document["text"] = _df.read()
with open(file_path, "a", encoding="utf-8") as _f:
_f.write(f"{json.dumps(document)}\n")
with open(file_path, "a", encoding="utf-8") as _f:
_f.write(json.dumps(document) + "\n")
def process(
self,
......@@ -108,4 +108,4 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
with open(output_path, "w", encoding="utf-8") as _f:
for out_document in out_documents:
_f.write(f"{json.dumps(out_document)}\n")
_f.write(json.dumps(out_document) + "\n")
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