Skip to content
Snippets Groups Projects
Commit 74447ecf authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

fix iobber when no disamb_only input

parent e0a790ff
Branches
No related merge requests found
......@@ -55,8 +55,9 @@ def get_reader(in_path, tagset, input_format, read_disamb_only):
"""Creates a reader using the options. If in_path evaluates to False,
will create a stdin reader. Set read_disamb_only to force reading only
'disamb' lexemes/interpretations."""
fixd_format = input_format
if read_disamb_only:
fixd_format = input_format + ',disamb_only'
fixd_format += ',disamb_only'
# force casting sentences as AnnotatedSentences
# required to get XCES input right
fixd_format += ',ann'
......
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