semvec/pypi-packages huggingface dataset:
newsnlp-gpr 0.6
This package aims to collect news data via Google News API, preporcessing, implement pretrained news type classifer and sentiment classifier and perform predictive model for news event and then implememnt multiple geolocator.
Requires Python: >=3.7,<4.0


![](/home/jason/Documents/data/newplot.png)
#News NLP
===========================

This is a simple Python client for the news NLP.

Usage
-----
First install it

```
pip install newsnlp-gpr
```

Then instantiate and use it like this:

```python
import newsnlp-gpr
from newsnlp-gpr.GNews import GNews
from newsnlp-gpr.preprocessing import Preprocessing_Clf_SA, Preprocessing_GEO,Combine_Col
from newsnlp-gpr.gpr_classifier import GPR_Clf
from newsnlp-gpr.sentiment_clf import Sen_Clf
from newsnlp-gpr.geolocator import Get_CSC_Prob, CSC_Prob
```

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

For a demenstration see `https://github.com/HigherHoopern/News_NLP`