"News Context Predictor" project uses machine learning to predict the context or subject of a news article. The code processes a dataset containing news articles by combining the title, text, and subject into a single feature. It uses the TF-IDF vectorizer to convert the text into numerical features and applies Logistic Regression for classification. The model is trained to predict the subject of a news article, and its performance is evaluated using accuracy, a confusion matrix, and a classification report. The project also includes a function to predict the subject of new user-provided news text.
-
Notifications
You must be signed in to change notification settings - Fork 0
Ankush0286/News-Context-Predictor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published