mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix ArcEager for missing values
This commit is contained in:
		
							parent
							
								
									c16ef0a85c
								
							
						
					
					
						commit
						8fce187de4
					
				| 
						 | 
					@ -362,7 +362,7 @@ cdef class ArcEager(TransitionSystem):
 | 
				
			||||||
        if not self.has_gold(gold):
 | 
					        if not self.has_gold(gold):
 | 
				
			||||||
            return None
 | 
					            return None
 | 
				
			||||||
        for i in range(gold.length):
 | 
					        for i in range(gold.length):
 | 
				
			||||||
            if gold.heads[i] is None: # Missing values
 | 
					            if gold.heads[i] is None or gold.labels[i] is None: # Missing values
 | 
				
			||||||
                gold.c.heads[i] = i
 | 
					                gold.c.heads[i] = i
 | 
				
			||||||
                gold.c.has_dep[i] = False
 | 
					                gold.c.has_dep[i] = False
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user