mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	* Require user-custom NER classes to work without adding the label.
This commit is contained in:
		
							parent
							
								
									84c5dfbfc3
								
							
						
					
					
						commit
						e1282b7f2f
					
				|  | @ -113,7 +113,6 @@ def test_ner_interaction(EN): | ||||||
|     doc = EN.tokenizer(u'get me a flight from SFO to LAX leaving 20 December and arriving on January 5th') |     doc = EN.tokenizer(u'get me a flight from SFO to LAX leaving 20 December and arriving on January 5th') | ||||||
|     EN.tagger(doc) |     EN.tagger(doc) | ||||||
|     EN.matcher(doc) |     EN.matcher(doc) | ||||||
|     EN.entity.add_label('AIRPORT') |  | ||||||
|     EN.entity(doc) |     EN.entity(doc) | ||||||
| 
 | 
 | ||||||
|     ents = [(ent.label_, ent.text) for ent in doc.ents] |     ents = [(ent.label_, ent.text) for ent in doc.ents] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user