Socket
Socket
Sign inDemoInstall

news-nlp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

news-nlp

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.


Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc