Пример #1
0
 def load(cls, path, normalize=True, restricted_context=None, **kwargs):
     mat = load_matrix(path)
     word_vocab, context_vocab = load_vocabulary(mat, path)
     return cls(mat,
                word_vocab,
                context_vocab,
                normalize=normalize,
                restricted_context=restricted_context)
Пример #2
0
 def load(cls,
          path,
          normalize=True,
          restricted_context=None,
          thresh=None,
          neg=1):
     mat = load_matrix(path, thresh)
     word_vocab, context_vocab = load_vocabulary(mat, path)
     return cls(mat,
                word_vocab,
                context_vocab,
                normalize,
                restricted_context,
                neg=neg)
Пример #3
0
 def load(cls, path, normalize=True, restricted_context=None, **kwargs):
     mat = load_matrix(path)
     word_vocab, context_vocab = load_vocabulary(mat, path)
     return cls(mat, word_vocab, context_vocab, normalize=normalize, restricted_context=restricted_context)
Пример #4
0
 def load(cls, path, normalize=True, restricted_context=None, thresh=None, neg=1):
     mat = load_matrix(path, thresh)
     word_vocab, context_vocab = load_vocabulary(mat, path)
     return cls(mat, word_vocab, context_vocab, normalize, restricted_context, neg=neg)