diff --git a/app/corpora/CQiWrapper/CQiWrapper.py b/app/corpora/CQiWrapper/CQiWrapper.py index 7f986746..c47f4976 100644 --- a/app/corpora/CQiWrapper/CQiWrapper.py +++ b/app/corpora/CQiWrapper/CQiWrapper.py @@ -94,6 +94,7 @@ class CQiWrapper(CQiClient): cpos match positions, produced by the query query -- query written in cqp query language ''' + self.query = query self.cqp_query(self.corpus_name, result_subcorpus_name, query) self.result_subcorpus = (self.corpus_name + ':' @@ -198,7 +199,8 @@ class CQiWrapper(CQiClient): self.results = {'matches': all_matches, 'cpos_lookup': all_cpos_infos, 'text_lookup': text_lookup, - 'total_nr_matches': self.total_nr_matches} + 'total_nr_matches': self.total_nr_matches, + 'query': self.query} return self.results def get_cpos_infos(self, all_cpos): diff --git a/app/templates/corpora/analyse_corpus.html.j2 b/app/templates/corpora/analyse_corpus.html.j2 index 90c13046..e5f38982 100644 --- a/app/templates/corpora/analyse_corpus.html.j2 +++ b/app/templates/corpora/analyse_corpus.html.j2 @@ -36,6 +36,7 @@ } +