GithubHelp home page GithubHelp logo

js1010 / cusim Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 8.0 403 KB

Superfast CUDA implementation of Word2Vec and Latent Dirichlet Allocation (LDA)

Home Page: https://cusim.readthedocs.io/en/latest/

License: Apache License 2.0

Cuda 33.68% C++ 23.16% Python 43.17%
cuda gensim gpu lda topic-modeling w2v word-embedding

cusim's People

Contributors

js1010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cusim's Issues

setuptools

when trying to install via pip install cusim-0.0.2.tar.gz I got this error as following:

no matching distribution found for setuptools>=1.3.2

while i have actually setuptools==41.4.0

Can you help?

unable to install cusim

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting cusim
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/50/0d/3f7cde3e169d0949342af84ed4d0ab02d094191d7b927add4ce592145c32/cusim-0.0.2.tar.gz (364 kB)
ERROR: The tar file (C:\Users\admin\AppData\Local\Temp\pip-unpack-ih0m5zfp\cusim-0.0.2.tar.gz) has a file (C:\Users\admin\AppData\Local\Temp\pip-install-ullfmob7\cusim\cusim/aux.py) trying to install outside target directory (C:\Users\admin\AppData\Local\Temp\pip-install-ullfmob7\cusim)

Unable to Install package

python setup.py install gives me this error
Traceback (most recent call last):
File "setup.py", line 23, in
from cuda_setup import CUDA, BUILDEXT
File "/home/d/cusim/cuda_setup.py", line 260, in
assert CUDA is not None
AssertionError. I do have

(cuda_envi) bash-4.2$ whereis cuda
cuda: /usr/local/cuda

bash-4.2$ echo $CUDA_HOME
/usr/local/cuda/

Compilation error with MS VC 2015 & 2017 under windows

In https://github.com/js1010/cusim/blob/main/cpp/src/utils/ioutils.cc the "not" logical operator should be replaced by "!"

cpp/src/utils\ioutils.cc(25): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(25): error C2146: syntax error: missing ')' before identifier 'err_cmt'
cpp/src/utils\ioutils.cc(25): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(25): error C2143: syntax error: missing ';' before 'return'
cpp/src/utils\ioutils.cc(39): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(72): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(72): error C2146: syntax error: missing ')' before identifier 'read_lines'
cpp/src/utils\ioutils.cc(72): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(72): error C2143: syntax error: missing ';' before 'return'
cpp/src/utils\ioutils.cc(95): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(95): error C2146: syntax error: missing ')' before identifier 'word_idmap_'
cpp/src/utils\ioutils.cc(95): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(95): error C2143: syntax error: missing ';' before 'continue'
cpp/src/utils\ioutils.cc(102): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(109): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(154): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(154): error C2146: syntax error: missing ')' before identifier 'remain_lines_'
cpp/src/utils\ioutils.cc(154): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(154): error C2146: syntax error: missing ';' before identifier 'fin_'
cpp/src/utils\ioutils.cc(163): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(173): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(202): error C2065: 'not': undeclared identifier

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.