mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
fix num matches
This commit is contained in:
parent
e13ed86d29
commit
303ea166d2
@ -48,7 +48,7 @@ class Subcorpus:
|
|||||||
def dump_values(self, context=25, first_result=0,
|
def dump_values(self, context=25, first_result=0,
|
||||||
num_results=float('inf')):
|
num_results=float('inf')):
|
||||||
first_result = max(0, first_result)
|
first_result = max(0, first_result)
|
||||||
last_result = min((first_result + num_results), (self.size - 1))
|
last_result = min((first_result + num_results - 1), (self.size - 1))
|
||||||
matches = []
|
matches = []
|
||||||
match_boundaries = zip(self.dump(self.fields['match'], first_result,
|
match_boundaries = zip(self.dump(self.fields['match'], first_result,
|
||||||
last_result),
|
last_result),
|
||||||
|
Loading…
Reference in New Issue
Block a user