Merge pull request #34 from weiyunfei/master
Resolve the ImportError when there's "utils" model.
This commit is contained in:
commit
043a8ced04
@ -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
|
||||
|
||||
|
@ -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,\
|
||||
|
Loading…
Reference in New Issue
Block a user