Comments (4)
The ukwac.model is trained using gensim word2vec tools based on the corpus ukWac. The official download site is https://wacky.sslmit.unibo.it/doku.php?id=corpora since we are not supposed to distribute it.
from comhyper.
The ukwac.model is trained using gensim word2vec tools based on the corpus ukWac. The official download site is https://wacky.sslmit.unibo.it/doku.php?id=corpora since we are not supposed to distribute it.
Thanks to your replay.
-
I've already downloaded ukwac(non dependency-parsed, non-pos tagged, plain text version) according to your description. Is this the version you utilized?
-
Besides, I encountered "UnicodeDecodeError" when I tried to use gensim with "word2vec.Word2Vec(LineSentence('ComHyper main/ukwac_preproc/cleaned_pre.pos.corpus'),size=300,min_count=1,sg=1)". Have you encountered similar problems? I would be very grateful if you can share the script about training word embeddings, considering hyper parameters like "min-count" will affect the final result.
from comhyper.
Generally I use the following code to train the gensim word2vec model as introduced in his official blog. https://rare-technologies.com/word2vec-tutorial/. The parameters are set default such as min_count = 5.
class MySentences(object):
def __init__(self, dirname):
self.dirname = dirname
def __iter__(self):
for fname in os.listdir(self.dirname):
for line in open(os.path.join(self.dirname, fname)):
yield line.split()
sentences = MySentences('/some/directory') # a memory-friendly iterator
model = gensim.models.Word2Vec(sentences)
from comhyper.
Generally I use the following code to train the gensim word2vec model as introduced in his official blog. https://rare-technologies.com/word2vec-tutorial/. The parameters are set default such as min_count = 5.
class MySentences(object): def __init__(self, dirname): self.dirname = dirname def __iter__(self): for fname in os.listdir(self.dirname): for line in open(os.path.join(self.dirname, fname)): yield line.split() sentences = MySentences('/some/directory') # a memory-friendly iterator model = gensim.models.Word2Vec(sentences)
Thanks a lot! Wish you a happy day.
from comhyper.
Related Issues (2)
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 comhyper.