【问题标题】:How can I get the embeddings from a list of words in Python?如何从 Python 中的单词列表中获取嵌入?
【发布时间】:2021-07-24 11:15:41
【问题描述】:

有没有办法从单词列表中获取单词嵌入以找到单词之间的语义关系?

例如,我有以下列表:

words = ['one','two','three','football','game','player']

我尝试从sklearnCountVectorizer 将我的列表转换为numpy 数组向量,结果是一个由1 和0 组成的n​​umpy 数组,但这显然是错误的。

【问题讨论】:

    标签: python vector word-embedding


    【解决方案1】:
    猜你喜欢
    • 2015-11-26
    • 1970-01-01
    • 2022-01-10
    • 1970-01-01
    • 1970-01-01
    • 2011-10-23
    • 2023-02-04
    • 2011-02-17
    • 2021-05-25
    相关资源
    最近更新 更多