def test_word_emb(): b = WordEmbedding() data1 = '你 好 啊'.split(' ') r = b.embed([data1], True) print(r) print(r.shape)
# -*- coding: utf-8 -*- """ @author:XuMing([email protected]) @description: """ from text2vec.embeddings.word_embedding import WordEmbedding if __name__ == '__main__': b = WordEmbedding() data1 = '你 好 啊'.split(' ') r = b.embed([data1], True) print(r) print(r.shape)