mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Update goldparse.jade
This commit is contained in:
		
							parent
							
								
									a980a7aa68
								
							
						
					
					
						commit
						67fdceed6a
					
				| 
						 | 
				
			
			@ -136,7 +136,7 @@ p
 | 
			
		|||
+aside-code("Example").
 | 
			
		||||
    from spacy.gold import biluo_tags_from_offsets
 | 
			
		||||
 | 
			
		||||
    doc = nlp('I like London.')
 | 
			
		||||
    doc = nlp(u'I like London.')
 | 
			
		||||
    entities = [(7, 13, 'LOC')]
 | 
			
		||||
    tags = biluo_tags_from_offsets(doc, entities)
 | 
			
		||||
    assert tags == ['O', 'O', 'U-LOC', 'O']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user