From c61d491dc3556fc4453ce732af7edfca2d24dc57 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Mon, 15 Sep 2014 22:26:28 +0200 Subject: [PATCH] ... --- corpus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/corpus.py b/corpus.py index 0d661d6..69539d3 100644 --- a/corpus.py +++ b/corpus.py @@ -1309,6 +1309,7 @@ class BuildCorpus : class BuildSubCorpus(BuildCorpus): def __init__(self, corpus, parametres, dlg = None) : + print parametres log.info('begin subcorpus...') self.dlg = dlg self.ori = corpus @@ -1362,7 +1363,7 @@ class BuildSubCorpus(BuildCorpus): newuces = [] newpara = [] for et in uci.paras : - keepuces = [CopyUce(uce) for uce in uci.uces if uce.para == idpara] + keepuces = [CopyUce(uce) for uce in uci.uces if uce.ident in dictucekeep] idpara += 1 if keepuces != [] : newuces += keepuces -- 2.7.4