mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix formatting
This commit is contained in:
		
							parent
							
								
									2829a024ef
								
							
						
					
					
						commit
						12c3d5fbba
					
				| 
						 | 
					@ -14,8 +14,7 @@ _num_words = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def like_num(text):
 | 
					def like_num(text):
 | 
				
			||||||
    text = text.replace(',', '')
 | 
					    text = text.replace(',', '').replace('.', '')
 | 
				
			||||||
    text = text.replace('.', '')
 | 
					 | 
				
			||||||
    if text.isdigit():
 | 
					    if text.isdigit():
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
    if text.count('/') == 1:
 | 
					    if text.count('/') == 1:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user