Skip to content

Commit

Permalink
style: formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuqiao committed Jul 10, 2024
1 parent 849667a commit 6ff83bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/g2p/base_g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ def get_dataset(self, wav_paths):
for wav_path in wav_paths:
try:
if wav_path.with_suffix("." + self.in_format).exists():
with open(wav_path.with_suffix("." + self.in_format), "r", encoding="utf-8") as f:
with open(
wav_path.with_suffix("." + self.in_format),
"r",
encoding="utf-8",
) as f:
lab_text = f.read().strip()
ph_seq, word_seq, ph_idx_to_word_idx = self(lab_text)
dataset.append((wav_path, ph_seq, word_seq, ph_idx_to_word_idx))
Expand Down

0 comments on commit 6ff83bf

Please sign in to comment.