lucastheis / trlda Goto Github PK
View Code? Open in Web Editor NEWImplementations of various online inference algorithms for LDA, with Python interface.
Home Page: http://lucastheis.github.io/trlda/
License: MIT License
Implementations of various online inference algorithms for LDA, with Python interface.
Home Page: http://lucastheis.github.io/trlda/
License: MIT License
ubgpu@ubgpu:/github/trlda$ python example.py/github/trlda$
Traceback (most recent call last):
File "example.py", line 14, in
for documents in load_documents('data_train.dat', 200):
File "/usr/local/lib/python2.7/dist-packages/trlda/utils/load_documents.py", line 38, in document_generator
with open(filepath) as handle:
IOError: [Errno 2] No such file or directory: 'data_train.dat'
ubgpu@ubgpu:
I'm using Python 2.7 on Windows 10.
The installation reported this error:
Unable to find vcvarsall.bat
Any help will be greatly appreciated.
Richard
Hi Lucas, I successfully built and installed trlda with Python 2.7.13 and Numpy 1.12.1 (Python 2.7.13 :: Anaconda 4.4.0 (64-bit) on Ubuntu 16.04 LTS). But when I try to run nosetests code/trlda, it comes two errors. Any idea why this is happening.
EE
======================================================================
ERROR: Failure: ImportError (/home/zen/anaconda2/lib/python2.7/site-packages/_trlda.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/media/zen/C4143FC6143FB9EE/Users/jason/Desktop/LDA-code/trlda-master/code/trlda/python/models/__init__.py", line 1, in <module>
from _trlda import Distribution
ImportError: /home/zen/anaconda2/lib/python2.7/site-packages/_trlda.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
======================================================================
ERROR: Failure: ImportError (/home/zen/anaconda2/lib/python2.7/site-packages/_trlda.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/zen/anaconda2/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/media/zen/C4143FC6143FB9EE/Users/jason/Desktop/LDA-code/trlda-master/code/trlda/python/utils/__init__.py", line 10, in <module>
from _trlda import random_select
ImportError: /home/zen/anaconda2/lib/python2.7/site-packages/_trlda.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
----------------------------------------------------------------------
Ran 2 tests in 0.200s
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.