Skip to main content

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/

Example

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

  1. Clone the repository:
    git clone https://github.com/kenjinezumi/storylinemapper.git
    cd storylinemapper
    
  2. Install required dependencies::
    pip install -r requirements.txt
    pip install -e .
    python -m spacy download en_core_web_sm
    
  3. 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.

Metadata

Release files for storylinemapper 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for storylinemapper 0.3.2
File Size Uploaded
storylinemapper-0.3.2.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for storylinemapper 0.3.2
File Interpreter ABI Platform
storylinemapper-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.9 kB

Release files / storylinemapper-0.3.2.tar.gz

Download URL storylinemapper-0.3.2.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
38a5b8d65f7078f41684c869938675a3165ecabfe5c7046406d1f0b92276cdf3
BLAKE2b-256 checksum
How to use checksums
fa5278ee0e074c5e0dabcd1e932077da65fd999ceac554d0ad2ddb193bf4fb41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / storylinemapper-0.3.2-py3-none-any.whl

Download URL storylinemapper-0.3.2-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0501f13228cc5485644749400f293c4a186b8348d698b60b4aaf8a1296f5840d
BLAKE2b-256 checksum
How to use checksums
dd1f4cccc90682708c968dba6a457deb69f5251e864ac7078218f8d2926e4dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page