Comments (2)
I noticed this problem myself. In the file wordvectors.py on line 171 they read
an extra character after each vector. This just sends the first letter to
nowhere. If you comment this line out then it works i.e.
171: #fin.read(1) # newline
Original comment by [email protected]
on 31 Mar 2015 at 3:00
from word2vec.
I noticed this problem myself. In the file wordvectors.py on line 171 they read
an extra character after each vector. This just sends the first letter to
nowhere. If you comment this line out then it works i.e.
171: #fin.read(1) # newline
The suggestion above worked for me. Note that you have to undo this if you were
to read binary files other than the google news one. If you continue with
commenting out the new line you will get corrupt vocabs like this :
vocab
-->
array([u'\nthe', u'\nof', u'\nand', u'\nto', u'\nin', u'\nor', u'\na',
u'\nfor', u'\nany', u'\nby', u'\nas', u'\nThe', u'\nbe', u'\nsuch',
u'\nshall', u'\nCompany', u'\nis', u'\non', u'\n._.'],
dtype='<U78')
Original comment by [email protected]
on 4 Jun 2015 at 2:40
from word2vec.
Related Issues (20)
- How can I get the coordinates of all words?
- Charset encoding HOT 1
- Patch for /trunk/demo-train-big-model-v1.sh HOT 4
- Fix build errors and warnings
- cnnot check out ?
- slightly optimized word2vec
- expTable array initialization
- Keeping indexing URIs in plain text models
- Cluster output malformed
- The definition of sentences? HOT 1
- Patch for /trunk/word2vec.c
- Patch for /trunk/README.txt
- Create vectors for classification HOT 1
- Patch for distance.c: minor off-by-one error
- word2phrase: AddWord2Vocab strcpy's full length of strings longer than MAX_STRING HOT 1
- distance.c - fread'ing all vector floats at once boosts loading speed by ~3x...
- Updating global variables without locking
- word2vec.c: Minor tweak to reduce CPU pipeline stalls (3% gain) HOT 1
- Make fails on Windows + Cygwin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from word2vec.