Add Flag to indicate if cpos lists are saved as ranges or lists.

This commit is contained in:
Patrick Jentsch 2020-04-02 10:14:43 +02:00
parent bfd7591f4d
commit 6a5621b753

View File

@ -82,7 +82,8 @@ class Subcorpus:
match = {'lc': lc, 'c': c, 'rc': rc}
matches.append(match)
lookups = self.corpus.lookups_by_cpos(cpos_list)
return {'matches': matches, **lookups}
return {'cpos_ranges': (not expand_lists), 'matches': matches,
**lookups}
def fdist_1(self, cutoff, field, attribute):
return self.client.api.cqp_fdist_1(self._name, cutoff,