mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix pseudoprojectivity->nonproj
This commit is contained in:
		
							parent
							
								
									ae8cf70dc1
								
							
						
					
					
						commit
						f00f821496
					
				| 
						 | 
					@ -113,7 +113,6 @@ def projectivize(heads, labels):
 | 
				
			||||||
    return proj_heads, deco_labels
 | 
					    return proj_heads, deco_labels
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@classmethod
 | 
					 | 
				
			||||||
def deprojectivize(tokens):
 | 
					def deprojectivize(tokens):
 | 
				
			||||||
    # reattach arcs with decorated labels (following HEAD scheme)
 | 
					    # reattach arcs with decorated labels (following HEAD scheme)
 | 
				
			||||||
    # for each decorated arc X||Y, search top-down, left-to-right,
 | 
					    # for each decorated arc X||Y, search top-down, left-to-right,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user