mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	compatibility fixes and add reimplementations
This commit is contained in:
		@@ -59,14 +59,14 @@ class Subcorpus:
 | 
			
		||||
            else:
 | 
			
		||||
                lc_rbound = max(0, (match_start - 1))
 | 
			
		||||
                if lc_rbound != match_start:
 | 
			
		||||
                    lc_lbound = max(0, match_start - context)
 | 
			
		||||
                    lc_lbound = max(0, (match_start - 1 - context))
 | 
			
		||||
                    lc = (lc_lbound, lc_rbound)
 | 
			
		||||
                    cpos_list_lbound = lc_lbound
 | 
			
		||||
                else:
 | 
			
		||||
                    cpos_list_lbound = match_start
 | 
			
		||||
                rc_lbound = min((match_end + 1), (self.corpus.size - 1))
 | 
			
		||||
                if rc_lbound != match_end:
 | 
			
		||||
                    rc_rbound = min((match_end + context),
 | 
			
		||||
                    rc_rbound = min((match_end + 1 + context),
 | 
			
		||||
                                    (self.corpus.size - 1))
 | 
			
		||||
                    rc = (rc_lbound, rc_rbound)
 | 
			
		||||
                    cpos_list_rbound = rc_rbound
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user