Skip to content

Commit

Permalink
🐛 Fix the path of the tsv file.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirnar committed Jan 22, 2025
1 parent b6068b2 commit 56d4118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion meloplus/text/thai.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def fn(m):
# Load the Thai G2P dictionary
thai_g2p_dict = defaultdict(list)

with open("wiktionary-23-7-2022-clean.tsv", encoding="utf-8") as f:
with open("meloplus/text/wiktionary-23-7-2022-clean.tsv/wiktionary-23-7-2022-clean.tsv",
encoding="utf-8") as f:
for line in f:
word, phonemes = line.strip().split("\t")
thai_g2p_dict[word].append(phonemes.split())
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_license():
],
'meloplus.text.fr_phonemizer': ['*.txt'],
'meloplus.text.es_phonemizer': ['*.txt'],
'meloplus.text': ['*.csv', '*.txt'],
'meloplus.text': ['*.tsv', '*.txt'],
},
include_package_data=True,
)

0 comments on commit 56d4118

Please sign in to comment.