mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			291 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			291 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from ...symbols import ORTH, NORM
 | |
| 
 | |
| 
 | |
| _exc = {}
 | |
| 
 | |
| 
 | |
| for exc_data in [
 | |
|     {ORTH: "ት/ቤት"},
 | |
|     {ORTH: "ወ/ሮ", NORM: "ወይዘሮ"},
 | |
| ]:
 | |
|     _exc[exc_data[ORTH]] = [exc_data]
 | |
| 
 | |
| 
 | |
| for orth in [
 | |
|     "ዓ.ም.",
 | |
|     "ኪ.ሜ.",
 | |
| ]:
 | |
|     _exc[orth] = [{ORTH: orth}]
 | |
| 
 | |
| 
 | |
| TOKENIZER_EXCEPTIONS = _exc
 |