mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Make test more explicit [ci skip]
This commit is contained in:
		
							parent
							
								
									cc3646b06c
								
							
						
					
					
						commit
						4771a10503
					
				|  | @ -617,5 +617,5 @@ def test_doc_set_ents_spans(en_tokenizer): | ||||||
|             retokenizer.merge(span) |             retokenizer.merge(span) | ||||||
|     # If this line is uncommented, it works: |     # If this line is uncommented, it works: | ||||||
|     # print(spans) |     # print(spans) | ||||||
|     doc.ents = list(doc.ents) + spans |     doc.ents = spans | ||||||
|     print([ent.text for ent in doc.ents]) |     assert [ent.text for ent in doc.ents] == ["Colombia", "Czech Republic"] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user