From 74447ecf6b1faf69526f9105a965c7f4b8bc5996 Mon Sep 17 00:00:00 2001 From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl> Date: Mon, 23 Apr 2012 12:42:12 +0200 Subject: [PATCH] fix iobber when no disamb_only input --- iobber/corpio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iobber/corpio.py b/iobber/corpio.py index 7481414..84095cd 100644 --- a/iobber/corpio.py +++ b/iobber/corpio.py @@ -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' -- GitLab