To reproduce the results from the report, you need to download the dataset 995,000_rows.csv.
If the data/ directory does not exist in the root of the repository, create it by running:
mkdir -p dataPlace the 995,000_rows.csv file inside the data/ directory.
.gitignore file is already configured to ignore everything inside the data/, you can verify that the file is ignored by running:
git check-ignore -v data/995,000_rows.csvfor data documentation see
https://github.com/several27/FakeNewsCorpusThe script requires the following Python libraries:
- nltk - Natural Language Toolkit for text processing.
- pandas - Data manipulation and analysis.
- numpy - Numerical computing.
- sklearn (scikit-learn) - Machine learning utilities
- matplotlib - Plots.
- cleantext - Corpus Cleaning
- pandarallel - paralisation
- gensim
- joblib
- clean-text
- If you're within the institution of UCPH, you can access a repostoire of our models, pre-trained and ready for testing. This includes the Doc2Vec models, which can take a long time to train otherwise. The link is below: https://alumni-my.sharepoint.com/:f:/g/personal/mrs530_alumni_ku_dk/EoXl2FTCYhtAha9IFT6XmG4BEJvQKtrX2t61GiMmLc8Byw?e=zVcP8w
To install the required libraries, ensure you have Python installed on your system. You can install the dependencies using pip by running the following command in your terminal or command prompt:
pip install nltk pandas numpy scikit-learn matplotlib cleantext pandarallel