mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	cats bugfix
This commit is contained in:
		
							parent
							
								
									880dccf93e
								
							
						
					
					
						commit
						a5ee082da1
					
				| 
						 | 
					@ -101,6 +101,8 @@ def _annot2array(vocab, tok_annot, doc_annot):
 | 
				
			||||||
                raise ValueError(Errors.E984)
 | 
					                raise ValueError(Errors.E984)
 | 
				
			||||||
            ent_kb_ids = _parse_links(vocab, words, value, entities)
 | 
					            ent_kb_ids = _parse_links(vocab, words, value, entities)
 | 
				
			||||||
            tok_annot["ENT_KB_ID"] = ent_kb_ids
 | 
					            tok_annot["ENT_KB_ID"] = ent_kb_ids
 | 
				
			||||||
 | 
					        elif key == "cats":
 | 
				
			||||||
 | 
					            pass
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            raise ValueError(f"Unknown doc attribute: {key}")
 | 
					            raise ValueError(f"Unknown doc attribute: {key}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user