Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jun 9, 2021
1 parent f1e7531 commit d0d7066
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gruut/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import typing
from pathlib import Path

from gruut_ipa import IPA
from gruut_ipa import IPA, Phonemes

from .const import TOKEN_OR_STR, WORD_PHONEMES, Token, TokenFeatures, WordPronunciation
from .phonemize import Phonemizer, SqlitePhonemizer
Expand Down Expand Up @@ -274,8 +274,6 @@ def id_to_phonemes(

if lang_phonemes is None:
# Use gruut-ipa for phonemes list
from gruut_ipa import Phonemes

lang_phonemes = [p.text for p in Phonemes.from_language(lang)]

assert lang_phonemes is not None
Expand Down

0 comments on commit d0d7066

Please sign in to comment.