Coder Social home page Coder Social logo

fakenewsnet_modified's People

Contributors

dependabot[bot] avatar kaidmml avatar mdepak avatar saschastenger avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

fakenewsnet_modified's Issues

Problem with collecting tweets

I can download news content normally, but the following error occurs when collecting tweets.How can I fix this problem?
Error: Downloading politifact fake politifact15014 tweets
Traceback (most recent call last):
File "main.py", line 70, in
download_dataset()
File "main.py", line 66, in download_dataset
data_collector.collect_data(data_choices)
File "/home/server/Dai/FakeNewsNet_modified/code/tweet_collection.py", line 66, in collect_data
collect_tweets(news_list, choice["news_source"], choice["label"], self.config)
File "/home/server/Dai/FakeNewsNet_modified/code/tweet_collection.py", line 27, in collect_tweets
data = pd.DataFrame(columns= features)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/frame.py", line 411, in init
mgr = init_dict(data, index, columns, dtype=dtype)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 242, in init_dict
val = construct_1d_arraylike_from_scalar(np.nan, len(index), nan_dtype)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1221, in construct_1d_arraylike_from_scalar
dtype = dtype.dtype
AttributeError: type object 'object' has no attribute 'dtype'

Sample of tweet_keys_file.txt

Hi @SaschaStenger ,

Thank you so much for providing a modified vision. When I tried to provide tweet keys, as I don't know the read format of keys in 'tweet_keys_file.txt', the code always got keys failed. Could you please provide a empty file of 'tweet_keys_file.txt', so that we can know the input format of keys. Much appreciated!

TypeError: '_io.TextIOWrapper'

the regular repo runs fine, but i get this error when trying.
Thanks.
Traceback (most recent call last): File "main.py", line 10, in <module> from tweet_collection import TweetCollector File "/home/user/FakeNewsNetMod/code/tweet_collection.py", line 12, in <module> line_1 = fKeysIn[0].rstrip().split(',') TypeError: '_io.TextIOWrapper' object is not subscriptable

tweets missing

I can download news.json but not the tweets, though I give the key, shoud the key be put inside commas?

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.