Giter Club home page Giter Club logo

thematic's People

Contributors

tmoravec avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fiuderazes

thematic's Issues

process.py not working on my windows pc

Hello
I have some problems working with your nice python files and I think if you may or can help me with this "k" error.

c:\Python36\osint\topic-analyst>py -3.6 process.py islamiromania.pkl
C:\Python36\lib\site-packages\gensim\utils.py:855: UserWarning: detected Windows
; aliasing chunkize to chunkize_serial
warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Slow version of gensim.models.doc2vec is being used
Sun Mar 19 12:00:00 2017 Loading data.
Sun Mar 19 12:00:02 2017 Starting to vectorize.
Sun Mar 19 12:00:07 2017 min_df: 3
Sun Mar 19 12:00:07 2017 Tfidf ignores 21030 terms.
Sun Mar 19 12:00:07 2017 Tfidf matrix shape: (79, 212)
Sun Mar 19 12:00:07 2017 Generating 200 LSA components and normalizing
Traceback (most recent call last):
File "process.py", line 492, in
main()
File "process.py", line 487, in main
text_clustering(raw_data, pagename)
File "process.py", line 402, in text_clustering
X = get_features_lsa(tf)
File "process.py", line 349, in get_features_lsa
X = lsa.fit_transform(tf)
File "C:\Python36\lib\site-packages\sklearn\pipeline.py", line 301, in fit_tra
nsform
Xt, fit_params = self._fit(X, y, **fit_params)
File "C:\Python36\lib\site-packages\sklearn\pipeline.py", line 234, in _fit
Xt = transform.fit_transform(Xt, y, **fit_params_steps[name])
File "C:\Python36\lib\site-packages\sklearn\decomposition\truncated_svd.py", l
ine 159, in fit_transform
U, Sigma, VT = svds(X, k=self.n_components, tol=self.tol)
File "C:\Python36\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py
", line 1714, in svds
raise ValueError("k must be between 1 and min(A.shape), k=%d" % k)
ValueError: k must be between 1 and min(A.shape), k=200

Thank you!

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.