mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Fix compile error in matcher
This commit is contained in:
		
							parent
							
								
									a8bc947fd4
								
							
						
					
					
						commit
						ad3d56c3ba
					
				| 
						 | 
					@ -324,6 +324,7 @@ cdef attr_t get_pattern_key(const TokenPatternC* pattern) nogil:
 | 
				
			||||||
        pattern += 1
 | 
					        pattern += 1
 | 
				
			||||||
    id_attr = pattern[0].attrs[0]
 | 
					    id_attr = pattern[0].attrs[0]
 | 
				
			||||||
    if id_attr.attr != ID:
 | 
					    if id_attr.attr != ID:
 | 
				
			||||||
 | 
					        with gil:
 | 
				
			||||||
            raise ValueError(Errors.E074.format(attr=ID, bad_attr=id_attr.attr))
 | 
					            raise ValueError(Errors.E074.format(attr=ID, bad_attr=id_attr.attr))
 | 
				
			||||||
    return id_attr.value
 | 
					    return id_attr.value
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user