Skip to content
Snippets Groups Projects
Commit 7869bc72 authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

Save single doc as list

parent c86119bb
No related branches found
No related tags found
No related merge requests found
Pipeline #14673 passed
...@@ -65,9 +65,9 @@ class EasymatcherWorker(nlp_ws.NLPWorker): ...@@ -65,9 +65,9 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
except json.decoder.JSONDecodeError: except json.decoder.JSONDecodeError:
with open(input_path, "r") as fin: with open(input_path, "r") as fin:
text = fin.read() text = fin.read()
documents_in = clarin_json.Document( documents_in = [clarin_json.Document(
id=str(uuid4()), text=text id=str(uuid4()), text=text
) )]
documents = [{"text": text}] documents = [{"text": text}]
for labels_path, labels_dict_name in zip(labels_path_list, labels_name_list): for labels_path, labels_dict_name in zip(labels_path_list, labels_name_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment