Skip to content
Snippets Groups Projects
Commit 6a5621b7 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

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

parent bfd7591f
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment