A library to generate networks of characters and timelines based on text
Project description
StorylineMapper
StorylineMapper is a Python tool for performing community detection on narrative texts. It uses advanced network analysis techniques to identify and visualize relationships and communities within the text, helping to uncover hidden connections and structures.
https://pypi.org/project/storylinemapper/0.3.1/
Table of Contents
Prerequisites
Before you start, ensure you have the following prerequisites installed on your machine:
- Python 3.12+: Make sure Python is installed and added to your system's PATH.
- pip: Python's package installer should also be installed.
Installation
- Clone the repository:
git clone https://github.com/kenjinezumi/storylinemapper.git cd storylinemapper
- Install required dependencies::
pip install -r requirements.txt pip install -e . python -m spacy download en_core_web_sm
- Usage:
To run StorylineMapper, use the following command in your terminal:
storylinemapper community-detection "YOUR_TEXT_HERE" --method louvain --output OUTPUT_FILENAME --design-options
Example
Here is an example command to run community detection using the Louvain method and output the results to community_network.html
```bash
storylinemapper community-detection "Dr. Emily Watson, a leading scientist from the Global Institute of Advanced Technologies (GIAT), collaborated with Dr. James Carter from the National Research Institute (NRI) on a groundbreaking quantum computing project..." --method louvain --output community_network.html --design-options
Options
--method: Specifies the community detection method to use (e.g., louvain, infomap, etc.). Default is louvain.--output: Specifies the output file name (e.g., community_network.html).--design-options: Adds additional design options to the visualization, such as node shapes, colors, and layouts.
Output
The output file will be an HTML file (community_network.html in the example) containing a visual representation of the detected communities and relationships between entities in the text.
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 storylinemapper-0.3.2.tar.gz.
File metadata
- Download URL: storylinemapper-0.3.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38a5b8d65f7078f41684c869938675a3165ecabfe5c7046406d1f0b92276cdf3
|
|
| MD5 |
0cf26766b737f4ef19bc69fc38c542a0
|
|
| BLAKE2b-256 |
fa5278ee0e074c5e0dabcd1e932077da65fd999ceac554d0ad2ddb193bf4fb41
|
File details
Details for the file storylinemapper-0.3.2-py3-none-any.whl.
File metadata
- Download URL: storylinemapper-0.3.2-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0501f13228cc5485644749400f293c4a186b8348d698b60b4aaf8a1296f5840d
|
|
| MD5 |
e8675ed1683fce0880e728ad1931f28e
|
|
| BLAKE2b-256 |
dd1f4cccc90682708c968dba6a457deb69f5251e864ac7078218f8d2926e4dc9
|