News-inspector is a library for analyzing and extracting information from news articles
Project description
news-inspector
News-inspector is a free software library for analyzing and acquiring information from news. It features various NLP and machine learning tasks that can be performed on text news articles:
- classification
- named entity recognition
- knowledge-based article search
All the methods can be easily configured and trained/retrained. Once trained, they can be loaded and used on new articles.
Requirements
- Python >=3.4
- scikit-learn>=0.17.1
- sklearn-crfsuite>=0.3
- nltk>=3.24
Installation
pip install news-inspector
Quick start
Train the model:
from news_inspector import GenericClassifier
train_model(GenericClassifier, "myconfig.xml", "myclassifier.model");
Load and use the model:
from news_inspector import load_model
model = load_model("myclassifier.model");
result = model.classify(text);
Documentation
Read the docs at https://news-inspector.readthedocs.io/en/latest/.
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-inspector-0.1.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for news_inspector-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea31178e6d3a2c1b7922378c6356161ad11fed9ba767c8a059663f1682423163 |
|
MD5 | f6471158d00af9316c38720f95244fc4 |
|
BLAKE2b-256 | 673af6d210f29d0470e034aeda771fdcc78f5173928d49d3934c99f84168bd71 |