fix loading submodule

This commit is contained in:
ozmig
2018-10-01 20:02:14 +09:00
parent 7caf9d695b
commit 0116fd07fb
4 changed files with 4 additions and 6 deletions
-1
View File
@@ -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
View File
@@ -1 +1 @@
from g2p import g2p, Session
from .g2p import g2p, Session
-2
View File
@@ -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
View File
@@ -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__)