diff --git a/src/easymatcher_worker.py b/src/easymatcher_worker.py index 8d79c8dab9e7d4a4d4ac8653ed30b978c3cc6ad2..5e59e71c0101085ed315cb1e0924120c6730cee3 100644 --- a/src/easymatcher_worker.py +++ b/src/easymatcher_worker.py @@ -20,9 +20,12 @@ class EasymatcherWorker(nlp_ws.NLPWorker): It relies on the use of an easymatcher tool which can be found he under - https://gitlab.clarin-pl.eu/knowledge-extraction/tools/easymatcher """ + @staticmethod - def is_jsonl(document_path: str | Path) -> bool: - """Validates whether text file has json/jsonl structure and has "text" keyword""" + def is_jsonl( + document_path: str | Path + ) -> bool: + """Validates whether text file has json/jsonl structure and has "text" keyword.""" try: with open(document_path, 'r', encoding="utf-8") as file: for line in file: