Git Product home page Git Product logo

embeding's Introduction

Embeding分为三个部分

1、pytorch实现glove

2、tensorflow 实现word2vec(skipgram)

3、gensim训练word2vec词向量并保存

其中第2部分是自己实现的: 输入为:数字编码的文本,word2id和id2word 输出为:词向量

若出现'没有**module'等错误可参考如下安装

windows系统:win+r 输入cmd,回车

pip install jieba -i https://pypi.douban.com/simple/
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gensim
nvcc -V 查看cuda版本
conda install pytorch torchvision cudatoolkit=9.0(9.0为cuda的版本号)
torch.cuda.is_available()

embeding's People

Contributors

ttjjlw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.