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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| storylinemapper-0.3.2.tar.gz | 11.8 kB | Without provenance | Details for storylinemapper-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| storylinemapper-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for storylinemapper-0.3.2-py3-none-any.whl |
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
|
Security for storylinemapper 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.