mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Fixed span example error
Span as written gives empty text.
This commit is contained in:
		
							parent
							
								
									7f6be41f21
								
							
						
					
					
						commit
						cb418c7aef
					
				|  | @ -103,7 +103,7 @@ p Get a #[code Token] object. | |||
|     doc = nlp(u'Give it back! He pleaded.') | ||||
|     assert doc[0].text == 'Give' | ||||
|     assert doc[-1].text == '.' | ||||
|     span = doc[1:1] | ||||
|     span = doc[1:3] | ||||
|     assert span.text == 'it back' | ||||
| 
 | ||||
| +table(["Name", "Type", "Description"]) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user