Skip to content

Commit

Permalink
don't warn user about LANGUAGE tag
Browse files Browse the repository at this point in the history
  • Loading branch information
letuananh committed Apr 29, 2021
1 parent 2be3f33 commit c240617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion speach/elan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from chirptext import DataObject
from chirptext import chio

from .__version__ import __issue__
from .vtt import sec2ts, ts2sec


Expand Down Expand Up @@ -638,8 +639,10 @@ def parse_eaf_stream(cls, eaf_stream):
_doc._add_constraint_xml(elem)
elif elem.tag == 'CONTROLLED_VOCABULARY':
_doc._add_vocab_xml(elem)
elif elem.tag == 'LANGUAGE':
logging.getLogger(__name__).info("LANGUAGE tag is not yet supported in this version")
else:
logging.getLogger(__name__).warning(f"Ignored element type -- {elem.tag}")
logging.getLogger(__name__).warning(f"Unknown element type -- {elem.tag}. Please consider to report an issue at {__issue__}")
# linking parts together
# linguistic_types -> vocabs
for lingtype in _doc.linguistic_types:
Expand Down

0 comments on commit c240617

Please sign in to comment.