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
Release history Release notifications | RSS feed
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.15.tar.gz
(22.7 MB
view hashes)
Built Distribution
news_nlp-1.0.15-py3-none-any.whl
(22.8 MB
view hashes)
Close
Hashes for news_nlp-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3db885e0a9a451867f3a92caaadb2f591d6fe8768782aba17214ed46ead91d |
|
MD5 | cbdd1b3aa15df56545dd58fbb9ee98fa |
|
BLAKE2b-256 | 5bcf55355560b01d7b8865f9b25611f36518471b214fb09bf49b6f3feb4a33e4 |