In R/word2vec_fit.R # construct_pmi()
do we really need to convert input sparse matrix into a regular matrix?
As more and more CUIs are considered, this will lead to exceeding the memory limit of the m/c.
I have made changes in my forked repo to construct pmi directly using sparse matrix:
kaushikacharya@c33492d
If you want I can create a pull request.