ENGLISH_ASR / Text2List.py
cdactvm's picture
Upload 6 files
3b58a97 verified
raw
history blame
2.18 kB
#!/usr/bin/env python
# coding: utf-8
# In[4]:
def text_to_list():
text_list = [
# English numbers (11-19)
'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen',
# English multiples of ten (20, 30, ..., 90)
'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'seventy', 'seventy', 'seventy', 'seventy', 'seventy', 'eighty', 'ninety',
# English combinations of 21-29
'twenty one', 'twenty two', 'twenty three', 'twenty four', 'twenty five', 'twenty six', 'twenty seven', 'twenty eight', 'twenty nine',
# English combinations of 31-39
'thirty one', 'thirty two', 'thirty three', 'thirty four', 'thirty five', 'thirty six', 'thirty seven', 'thirty eight', 'thirty nine',
# English combinations of 41-49
'forty one', 'forty two', 'forty three', 'forty four', 'forty five', 'forty six', 'forty seven', 'forty eight', 'forty nine',
# English combinations of 51-59
'fifty one', 'fifty two', 'fifty three', 'fifty four', 'fifty five', 'fifty six', 'fifty seven', 'fifty eight', 'fifty nine',
# English combinations of 61-69
'sixty one', 'sixty two', 'sixty three', 'sixty four', 'sixty five', 'sixty six', 'sixty seven', 'sixty eight', 'sixty nine',
# English combinations of 71-79
'seventy one', 'seventy two', 'seventy three', 'seventy four', 'seventy five', 'seventy six', 'seventy seven', 'seventy eight', 'seventy nine',
# English combinations of 81-89
'eighty one', 'eighty two', 'eighty three', 'eighty four', 'eighty five', 'eighty six', 'eighty seven', 'eighty eight', 'eighty nine',
# English combinations of 91-99
'ninety one', 'ninety two', 'ninety three', 'ninety four', 'ninety five', 'ninety six', 'ninety seven', 'ninety eight', 'ninety nine',
# English numbers (0-10)
'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten',
# English for 100
'hundred',
# English for 1000
'thousand'
# English for 100000
'lakh'
]
return text_list
# In[ ]: