mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Update test for biluo tags
This commit is contained in:
		
							parent
							
								
									4fc56d4a31
								
							
						
					
					
						commit
						5444d38cc6
					
				| 
						 | 
					@ -45,4 +45,4 @@ def test_misalign(vocab):
 | 
				
			||||||
    doc = Doc(vocab, orths_and_spaces=orths_and_spaces)
 | 
					    doc = Doc(vocab, orths_and_spaces=orths_and_spaces)
 | 
				
			||||||
    entities = [(len("I flew to "), len("I flew to San Francisco Valley"), 'LOC')]
 | 
					    entities = [(len("I flew to "), len("I flew to San Francisco Valley"), 'LOC')]
 | 
				
			||||||
    tags = biluo_tags_from_offsets(doc, entities)
 | 
					    tags = biluo_tags_from_offsets(doc, entities)
 | 
				
			||||||
    assert tags == ['O', 'O', 'O', '', '', '']
 | 
					    assert tags == ['O', 'O', 'O', '-', '-', '-']
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user