Learning how to process text is a skill required for Data Scientists/AI Engineers.
In this project, you will put these skills into practice to identify whether a news headline is real or fake news.
In the file dataset/data.csv
, you will find a dataset containing news articles with the following columns:
label
: 0 if the news is fake, 1 if the news is real.title
: The headline of the news article.text
: The full content of the article.subject
: The category or topic of the news.date
: The publication date of the article.
Your goal is to build a classifier that is able to distinguish between the two.
Once you have a classifier built, then use it to predict the labels for dataset/validation_data.csv
. Generate a new file
where the label 2
has been replaced by 0
(fake) or 1
(real) according to your model. Please respect the original file format,
do not include extra columns, and respect the column separator.
Please ensure to split the data.csv
into training and test datasets before using it for model training or evaluation.
Like in a real life scenario, you are able to make your own choices and text treatment. Use the techniques you have learned and the common packages to process this data and classify the text.
- Python Code: Provide well-documented Python code that conducts the analysis.
- Predictions: A csv file in the same format as
validation_data.csv
but with the predicted labels (0 or 1) - Accuracy estimation: Provide the teacher with your estimation of how your model will perform.
- Presentation: You will present your model in a 10-minute presentation. Your teacher will provide further instructions.