mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add Flag to indicate if cpos lists are saved as ranges or lists.
This commit is contained in:
parent
bfd7591f4d
commit
6a5621b753
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user