Merge pull request #34 from weiyunfei/master

Resolve the ImportError when there's "utils" model.
This commit is contained in:
Hain Wang 2018-01-29 11:36:20 +08:00 committed by GitHub
commit 043a8ced04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,9 @@ else:
import json
import gzip
import shutil
from word2vec import KeyedVectors
from utils import any2utf8
from utils import any2unicode
from synonyms.word2vec import KeyedVectors
from synonyms.utils import any2utf8
from synonyms.utils import any2unicode
import jieba.posseg as _tokenizer
import jieba

View File

@ -28,7 +28,7 @@ if sys.version_info[0] < 3:
else:
xrange = range
import utils
import synonyms.utils as utils
from numpy import dot, zeros, dtype, float32 as REAL,\
double, array, vstack, fromstring, sqrt, newaxis,\
ndarray, sum as np_sum, prod, ascontiguousarray,\