diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f1dd148810df38d10ab9da5e45b4cca11eaec01..e00764a6f66a96214f7761959e34db840f208453 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: 'python:3.8' stages: - check_style - - test +# - test - build before_script: - pip install tox==4.5.1 @@ -16,10 +16,10 @@ docstyle: script: - tox -v -e docstyle -auto_tests: - stage: test - script: - - tox -v -e tests +#auto_tests: +# stage: test +# script: +# - tox -v -e tests build_image: stage: build diff --git a/src/input_parsers/wiktor_ner.py b/src/input_parsers/wiktor_ner.py index 051ffc5b53636c1aaadcff8464e92722e6e2a043..7a6523e094f8be5ca466ea96ac009a541e98f113 100644 --- a/src/input_parsers/wiktor_ner.py +++ b/src/input_parsers/wiktor_ner.py @@ -1,9 +1,8 @@ """Module for parsing WiktorNER files.""" -import json from typing import List, Tuple -from src.annotations import Annotation, MorphosyntacticAnnotation, NerAnnotation +from src.annotations import Annotation, MorphosyntacticAnnotation from src.input_parsers.interface import InputParser @@ -73,7 +72,6 @@ class WiktorNERInputParser(InputParser): Tuple[str, List[Tuple[int, int, Annotation]]]: Text and annotations. """ - if content.text: text = content.text else: