mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Set list/range flag in events.py instead of the export function
This commit is contained in:
		@@ -82,8 +82,7 @@ class Subcorpus:
 | 
			
		||||
                match = {'lc': lc, 'c': c, 'rc': rc}
 | 
			
		||||
            matches.append(match)
 | 
			
		||||
        lookups = self.corpus.lookups_by_cpos(cpos_list)
 | 
			
		||||
        return {'cpos_ranges': (not expand_lists), 'matches': matches,
 | 
			
		||||
                **lookups}
 | 
			
		||||
        return {'matches': matches, **lookups}
 | 
			
		||||
 | 
			
		||||
    def fdist_1(self, cutoff, field, attribute):
 | 
			
		||||
        return self.client.api.cqp_fdist_1(self._name, cutoff,
 | 
			
		||||
 
 | 
			
		||||
@@ -81,6 +81,7 @@ def pj_corpus_analysis_query(query):
 | 
			
		||||
            break
 | 
			
		||||
        chunk = results.export(context=context, cutoff=chunk_size,
 | 
			
		||||
                               expand_lists=True, offset=chunk_start)
 | 
			
		||||
        chunk.cpos_ranges = False
 | 
			
		||||
        if (results.size == 0):
 | 
			
		||||
            progress = 100
 | 
			
		||||
        else:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user