Skip to content
Snippets Groups Projects

Resolve "Read not only .txt files"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -25,7 +25,7 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
def is_jsonl(
document_path: str | Path
) -> bool:
"""Validates whether text file has json/jsonl structure and has "text" keyword."""
"""Validates whether text file has json/jsonl structure."""
try:
with open(document_path, 'r', encoding="utf-8") as file:
for line in file:
Loading