This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
cmu_dict_file = "./cmudict-0.txt" # CMU dictionary .txt file | |
word_data = {} | |
def get_stress(phonemes): | |
""" Extracts stress markers from phoneme list. """ | |
stress_markers = [] | |
for phoneme in phonemes: | |
if phoneme[-1].isdigit(): |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aardvark=aard�vark | |
abattoir=ab�at�toir | |
abaci=ab�a�ci | |
abacus=ab�a�cus | |
abacuses=ab�a�cus�es | |
abalone=ab�a�lo�ne | |
abatis=ab�a�tis | |
abbacy=ab�ba�cy | |
abbe=ab�be | |
abbess=ab�bess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dataurl = `data:[filetype];base4,[base64.ext]` | |
// filename | |
function dataURLtoFile(dataurl, filename) { | |
var arr = dataurl.split(','), | |
mime = arr[0].match(/:(.*?);/)[1], | |
bstr = atob(arr[1]), | |
n = bstr.length, | |
u8arr = new Uint8Array(n); | |
while (n--) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "US Dollar", | |
"symbol": "$", | |
"symbolNative": "$", | |
"decimalDigits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"namePlural": "US dollars", | |
"countryEmoji": "🇺🇸" |