to-shimo / chinese-word2vec Goto Github PK
View Code? Open in Web Editor NEWword2vec/glove/swivel binary file on chinese corpus
word2vec/glove/swivel binary file on chinese corpus
RT
你好,请问一下这个项目里面的词向量都是多少维的呢?
请问glove-utf8的语料库能提供所训练的词吗,词向量中貌似只有权重。。。
请问如何读取 glove 的二进制格式?
thanks so much for the model, it's been very useful.
I'd like to apply your model in my application, but I don't know how to fine tune it, Can you help me out?
Thks a lot
model = gensim.models.KeyedVectors.load_word2vec_format(fdir + 'cn.skipgram.bin.tar.gz', binary=True)
ValueError: invalid literal for int() with base 10: 'cn.skipgram.bin\x00\x00。。。。。。
你好,读取cn.skipgram.bin.tar.gz文件出现这个错误,查了很久都不知道原因
用gensim的load_word2vec_format 会提示UnicodeDecodeError
这个训练之前有对文本进行分词吗?用的是什么分词工具?
关于训练参数,训练数据之类的详细说明一下?
Hi, recently I'm using your model for an NLP project. But it occurs some bugs.
In [2]: model = models.Word2Vec.load('cn.cbow.bin')
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
<ipython-input-2-01c34d25b411> in <module>()
----> 1 model = models.Word2Vec.load('cn.cbow.bin')
/usr/local/lib/python2.7/dist-packages/gensim/models/word2vec.pyc in load(cls, *args, **kwargs)
1760 @classmethod
1761 def load(cls, *args, **kwargs):
-> 1762 model = super(Word2Vec, cls).load(*args, **kwargs)
1763 # update older models
1764 if hasattr(model, 'table'):
/usr/local/lib/python2.7/dist-packages/gensim/utils.pyc in load(cls, fname, mmap)
246 compress, subname = SaveLoad._adapt_by_suffix(fname)
247
--> 248 obj = unpickle(fname)
249 obj._load_specials(fname, mmap, compress, subname)
250 logger.info("loaded %s", fname)
/usr/local/lib/python2.7/dist-packages/gensim/utils.pyc in unpickle(fname)
910 with smart_open(fname) as f:
911 # Because of loading from S3 load can't be used (missing readline in smart_open)
--> 912 return _pickle.loads(f.read())
913
914
UnpicklingError: unpickling stack underflow
Platform:
Ubuntu 15.10/ Python2.7.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.