mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Output unlabelled spans from O biluo tags in iob_utils
This commit is contained in:
		
							parent
							
								
									7eb064854e
								
							
						
					
					
						commit
						8bbf31a582
					
				| 
						 | 
				
			
			@ -181,6 +181,8 @@ def tags_to_entities(tags):
 | 
			
		|||
            # TODO: We shouldn't be getting these malformed inputs. Fix this.
 | 
			
		||||
            if start is not None:
 | 
			
		||||
                start = None
 | 
			
		||||
            else:
 | 
			
		||||
                entities.append(("", i, i))
 | 
			
		||||
            continue
 | 
			
		||||
        elif tag == "-":
 | 
			
		||||
            continue
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user