mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Add Flag to indicate if cpos lists are saved as ranges or lists.
This commit is contained in:
		@@ -82,7 +82,8 @@ class Subcorpus:
 | 
				
			|||||||
                match = {'lc': lc, 'c': c, 'rc': rc}
 | 
					                match = {'lc': lc, 'c': c, 'rc': rc}
 | 
				
			||||||
            matches.append(match)
 | 
					            matches.append(match)
 | 
				
			||||||
        lookups = self.corpus.lookups_by_cpos(cpos_list)
 | 
					        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):
 | 
					    def fdist_1(self, cutoff, field, attribute):
 | 
				
			||||||
        return self.client.api.cqp_fdist_1(self._name, cutoff,
 | 
					        return self.client.api.cqp_fdist_1(self._name, cutoff,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user