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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file news-inspector-0.1.1.tar.gz.
File metadata
- Download URL: news-inspector-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2403ba73d4afa425bbeef1c23dede36378c7cb3fe21cf6a3f78f5555b87c5c
|
|
| MD5 |
883f052990e8efd13956ee61de39988d
|
|
| BLAKE2b-256 |
559eed09417b1cbcab0790185a9c6b71ab88e0416aecd3548aaa99f1bc7ac249
|
File details
Details for the file news_inspector-0.1.1-py3-none-any.whl.
File metadata
- Download URL: news_inspector-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea31178e6d3a2c1b7922378c6356161ad11fed9ba767c8a059663f1682423163
|
|
| MD5 |
f6471158d00af9316c38720f95244fc4
|
|
| BLAKE2b-256 |
673af6d210f29d0470e034aeda771fdcc78f5173928d49d3934c99f84168bd71
|