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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file news_nlp-1.0.22.tar.gz.

File metadata

  • Download URL: news_nlp-1.0.22.tar.gz
  • Upload date:
  • Size: 22.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.7 Linux/5.15.0-58-generic

File hashes

Hashes for news_nlp-1.0.22.tar.gz
Algorithm Hash digest
SHA256 a8443ffa36c3109803d6f30602d166acbe805c56efc04bc1a442f0c64b5df052
MD5 707a96538ab8950a9c8af289cfadbb3c
BLAKE2b-256 73ba3e063989eccbf0cdeefc778aa6f2caab9adbbf062f98dc532073004f6de5

See more details on using hashes here.

File details

Details for the file news_nlp-1.0.22-py3-none-any.whl.

File metadata

  • Download URL: news_nlp-1.0.22-py3-none-any.whl
  • Upload date:
  • Size: 22.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.7 Linux/5.15.0-58-generic

File hashes

Hashes for news_nlp-1.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 4d15809dc0bee62388ec0974bdc678d8c10aa1a5a4c7e3fd0e48bc02d3452708
MD5 c0e488595892a440607dc49aca16091d
BLAKE2b-256 81ef448210830cefe6f7516e0276a28b16d804dd244f4d90e60840a848ecf773

See more details on using hashes here.

Supported by

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