mirror of
https://github.com/Mintplex-Labs/g2p-en.git
synced 2026-07-01 18:25:51 -04:00
fix loading submodule
This commit is contained in:
@@ -7,7 +7,6 @@ Author: Kyubyong Park & Jongseok Kim
|
||||
Author-email: kbpark.linguist@gmail.com
|
||||
License: Apache Software License
|
||||
Download-URL: https://github.com/Kyubyong/g2p/archive/1.0.0.tar.gz
|
||||
Description-Content-Type: UNKNOWN
|
||||
Description: g2p\_en: A Simple Python Module for English Grapheme To Phoneme Conversion
|
||||
==========================================================================
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
from g2p import g2p, Session
|
||||
from .g2p import g2p, Session
|
||||
|
||||
@@ -12,8 +12,6 @@ import re
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
_inflect = inflect.engine()
|
||||
_comma_number_re = re.compile(r'([0-9][0-9\,]+[0-9])')
|
||||
_decimal_number_re = re.compile(r'([0-9]+\.[0-9]+)')
|
||||
|
||||
+3
-2
@@ -20,13 +20,14 @@ try:
|
||||
except LookupError:
|
||||
nltk.download('cmudict')
|
||||
|
||||
from train import Graph, hp, load_vocab
|
||||
from .train import Graph, hp, load_vocab
|
||||
from .expand import normalize_numbers
|
||||
|
||||
import numpy as np
|
||||
import codecs
|
||||
import re
|
||||
import os
|
||||
import unicodedata
|
||||
from expand import normalize_numbers
|
||||
from builtins import str as unicode
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
|
||||
Reference in New Issue
Block a user