Add first things to get more context for one match.

This commit is contained in:
Stephan Porada
2019-12-02 16:13:53 +01:00
parent d2334e6a1e
commit 94e8d0895c
3 changed files with 51 additions and 5 deletions

View File

@ -294,4 +294,7 @@ class CQiWrapper(CQiClient):
t1 = time.time()
t_total = t1 - t0
logger.warning('Got all sentences informations in {} seconds'. format(t_total))
return context_sentences, all_cpos_infos, text_lookup
match_context = {'context_s_cpos': context_sentences,
'cpos_lookup': all_cpos_infos,
'text_lookup': text_lookup}
return match_context