Skip to main content

This package aims to collect news data via Google News API, preporcessing, implement pretrained news type classifer, sentiment classifier and perform statistical hierarchy predictive model for news event and then implememnt multiple geolocator.

Project description

News NLP for Global Geopolitical Risk

=======================================

This is a Python client for the news NLP.

Usage

First install it

pip install news-nlp -U

Then instantiate and use it like this:

import News_NLP
from News_NLP.GNews import GNews
from News_NLP.preprocessing import Preprocessing_Clf_SA, Preprocessing_GEO,Combine_Col
from News_NLP.gpr_classifier import GPR_Clf
from News_NLP.sentiment_clf import Sen_Clf
from News_NLP.geolocator import Get_CSC_Prob, CSC_Prob
  • Fetch news articles from Google News API, from News_NLP.GNews import GNews
  • Preproces news data for sentiment analysis and news type classifier from News_NLP.preprocessing import Preprocessing_Clf_SA
  • Preproces news data for multiple-geolocator from News_NLP.preprocessing import Preprocessing_GEO
  • Implement pretrained deep leanring model to caterise news article from News_NLP.gpr_classifier import GPR_Clf
  • Perform sentiment classifier from News_NLP.sentiment_clf import Sen_Clf
  • Implement multiple geolocator form News_NLP.geolocator import Get_CSC_Prob, CSC_Prob,

GitHub

For a demonstration in Jupyter notebook see https://github.com/HigherHoopern/News_NLP/NewsApp.ipynb

download sample news data https://github.com/HigherHoopern/News_NLP/blob/main/data/SampleNews.csv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

news_nlp-1.0.22.tar.gz (22.7 MB view hashes)

Uploaded Source

Built Distribution

news_nlp-1.0.22-py3-none-any.whl (22.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page