zadewg / election-meddling Goto Github PK
View Code? Open in Web Editor NEWArtificial Intelligence for mass political profiling and covert election interference.
License: MIT License
Artificial Intelligence for mass political profiling and covert election interference.
License: MIT License
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
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?
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,
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.