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
No related branches found
No related tags found
1 merge request!9Check dir_style bug fix
Pipeline #13759 passed
...@@ -137,6 +137,7 @@ class TaggerWorker(nlp_ws.NLPWorker): ...@@ -137,6 +137,7 @@ class TaggerWorker(nlp_ws.NLPWorker):
_dir_style = True _dir_style = True
json_lpmn = [json_lpmn] json_lpmn = [json_lpmn]
if not _dir_style:
with open(input_path, "r", encoding="utf-8") as f: with open(input_path, "r", encoding="utf-8") as f:
text = f.read(50) text = f.read(50)
if text.startswith("<?xml version='1.0' encoding='UTF-8'?>"): if text.startswith("<?xml version='1.0' encoding='UTF-8'?>"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment