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

Merge branch 'dir_style_bug' into 'master'

Check dir_style bug fix

Closes #7

See merge request !9
parents 8367c169 599cef9a
Branches
1 merge request!9Check dir_style bug fix
Pipeline #13759 passed with stages
in 2 minutes and 28 seconds
......@@ -137,10 +137,11 @@ class TaggerWorker(nlp_ws.NLPWorker):
_dir_style = True
json_lpmn = [json_lpmn]
with open(input_path, "r", encoding="utf-8") as f:
text = f.read(50)
if text.startswith("<?xml version='1.0' encoding='UTF-8'?>"):
_tei_style = True
if not _dir_style:
with open(input_path, "r", encoding="utf-8") as f:
text = f.read(50)
if text.startswith("<?xml version='1.0' encoding='UTF-8'?>"):
_tei_style = True
_log.error(f"{_dir_style=} {_tei_style=}")
......
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