Story Clustering Bot for Taranis AI
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Story Clustering
This code takes newsitems in the format as provided by Taranis AI and clusters them into Stories.
Description and Use
The approach supports the following functionalities:
- Automatically detect Events.
- News items are clustered based on the detected Events.
- Documents belonging to related Events are then clustered into Stories.
Initial clustering
The method initial_clustering in clustering.py takes as input a dictionary of news_items_aggregate (see tests/testdapa.py for the actual input format) and outputs a dictionary containing two keys:
("event_clusters" : list of list of documents ids) and
("story_clusters" : list of list of documents ids)
Incremental clustering
The method incremental_clustering_v2 takes as input a dictionary of news_items_aggregate, containing new news items to be clustered, and clustered_news_items_aggregate, containing already clustered items, and tries to cluster the new documents to the existing clusters or create new ones. See tests/testdata.py for the actual input formats. This method also
outputs a dictionary containing two keys:
("event_clusters" : list of list of documents ids) and
("story_clusters" : list of list of documents ids)
Installation
The requirements.txt file should list all Python libraries that the story-clustering
depends on, and they will be installed using:
pip install .
Development
pip install .[dev]
Use
See notebook\test_story_clustering.ipynb for examples on how to use the clustering methods.
License
EUROPEAN UNION PUBLIC LICENCE v. 1.2
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 taranis_story_clustering-0.8.1.tar.gz.
File metadata
- Download URL: taranis_story_clustering-0.8.1.tar.gz
- Upload date:
- Size: 43.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b4c08db168ba2c4fecf233955e9b3bc736fe44446ff558b231118e397e9068
|
|
| MD5 |
babf691577450ace502c86ceb8a195cc
|
|
| BLAKE2b-256 |
6f86d94e2f05e771b907b8afefb27a6aaddf6836c0d0b20bbf716075d1199cd1
|
File details
Details for the file taranis_story_clustering-0.8.1-py3-none-any.whl.
File metadata
- Download URL: taranis_story_clustering-0.8.1-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccc7898be15483e468e01d3589dc163ba5f8b385a60b4c159df01f653af3a856
|
|
| MD5 |
e6221095e5516e6264c7c3051eeeed7e
|
|
| BLAKE2b-256 |
f2201d9b3d6a7980ac2ac8b6b75a3e829b023e9ed80d387a31e1f0d1de8cda54
|