Git Product home page Git Product logo

election-meddling's People

Contributors

zadewg avatar

Stargazers

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

Watchers

 avatar  avatar

election-meddling's Issues

Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.

First off, I must say that I am intrigued by this repo. Nice work! Generating a diagram showing a Twitter user's political views with AI is very cool. Just one question though, when I run the script, I get Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. I am a beginner programmer and don't really understand why I am getting this or its purpose but this project interests me so much that I had to ask.

Thanks

Suggest to loosen the dependency on textblob

Hi, your project Election-Meddling(commit id: 87d04b0) requires "textblob==0.15.1" in its dependency. After analyzing the source code, we found that the following versions of textblob can also be suitable, i.e., textblob 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.15.0, 0.15.2, 0.15.3, 0.16.0, 0.17.0, 0.17.1, since all functions that you directly (1 APIs: textblob.blob.TextBlob.init) or indirectly (propagate to 5 textblob's internal APIs and 0 outsider APIs) used from the package have not been changed in these versions, thus not affecting your usage.

Therefore, we believe that it is quite safe to loose your dependency on textblob from "textblob==0.15.1" to "textblob>=0.9.0,<=0.17.1". This will improve the applicability of Election-Meddling and reduce the possibility of any further dependency conflict with other projects.

May I pull a request to further loosen the dependency on textblob?

By the way, could you please tell us whether such an automatic tool for dependency analysis may be potentially helpful for maintaining dependencies easier during your development?

IndexError: tuple index out of range

Hey, nice work, you're ready for Cambridge :)

I've implemented your code and the sentiment analysis of the tweets works well, but then I get the following error:

Traceback (most recent call last):
File "deploy.py", line 621, in
orientation = main(target, num);
File "deploy.py", line 570, in main
scatters = plt.scatter(C1OUT, C2OUT, c=OBJ, cmap='RdYlGn', vmin=0, vmax=1)
File "/home/reactionhashs/anaconda2/envs/politicalbots/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2793, in scatter
verts=verts, edgecolors=edgecolors, data=data, **kwargs)
File "/home/reactionhashs/anaconda2/envs/politicalbots/lib/python3.6/site-packages/matplotlib/init.py", line 1785, in inner
return func(ax, *args, **kwargs)
File "/home/reactionhashs/anaconda2/envs/politicalbots/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 4189, in scatter
n_elem = c_array.shape[0]
IndexError: tuple index out of range

What's up with that? What am I doing wrong?

Cheers,

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.