behrouzbakhtiari / twitter-word-cloud Goto Github PK
View Code? Open in Web Editor NEWTwitter word cloud generator
License: GNU Affero General Public License v3.0
Twitter word cloud generator
License: GNU Affero General Public License v3.0
Does this project include user's retweets?
I run the project and after checking the log, I realized that it doesn't get retweets.
در انتخاب یوزر توسط sys.argv داره آرگومان اول رو انتخاب میکنه که چون داره کلید -u میگیره یوزرنیم رو -u میگیره و ادامه میده کار رو نه نام کاربری و احتمالا همین مساله برای تعداد کلمات هم باشه که یه کلید اومده قبلش
باید شماره جایگاه ارگومان ها رو تغییر بدید
python twc.py -u twitter_username -c 100
Please include a Free Software license for this project. AGPLv3 would be great.
سلام
تیتر واضحه. برای نمونه اکانت shaheding رو تست کنین.
مرسی.
چطور می تونم ابر کلمات دو کلمه ای رو با استفاده از برنامه پیدا کنم؟ آیا امکان پذیر است؟
برای پیدا کردن ابرکلمات در اسکیل بزرگتر راه حلی دارید؟
It seems the code cannot handle those Persian hashtags that contain ZWNJ. For example #نرمافزار_آزاد gets converted into افزار_آزاد
I have investigated and found that the issue is related to preprocessor
package which doesn't recognize ZWNJ as a valid character in hashtag. I have reported the issue (s/preprocessor#30) and also sent a PR to the project (s/preprocessor#31)
Though solving that problem is good, but it will harm this project as it results in complete removal of hashtag. I suggest to keep hashtags in the word cloud by removing # character manually before passing it into preprocessor.
If you agree, I send PR for it
There's a gap in the middle of persian
list in stopwords.py
.
...
'۹',
'…',
'و']
[ 'خواهید',
'گوییم',
'اکثرا',
...
I mean those ][
.
دستور اجرا شده
python twc.py soboutipour 200
Traceback (most recent call last):
File "twc.py", line 141, in
main()
File "twc.py", line 137, in main
generate_word_cloud()
File "twc.py", line 114, in generate_word_cloud
data['clean_tweet'] = data['tweet'].apply(lambda x: clean_tweet(x))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\series.py", line 3848, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas_libs\lib.pyx", line 2327, in pandas._libs.lib.map_infer
File "twc.py", line 114, in
data['clean_tweet'] = data['tweet'].apply(lambda x: clean_tweet(x))
File "twc.py", line 69, in clean_tweet
tweet = tweet.lower()
AttributeError: 'float' object has no attribute 'lower'
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.