A 2D-force-graph visualizing interconnections in Rosa Luxemburg's works. It will recognize named entities (e.g. persons, locations, nationalities or religious or political groups and organizations) from any text source. Just drop files into the text folder.
- Python backend
- HTML, CSS, Vanilla Javascript frontend
The app will try to geolocate all found locations.
All Rosa texts are translations from marxists.org - All rights reserved.
- quart
- markdown
- textblob
- spacy
python -m spacy download en_core_web_lg
python -m spacy download de_core_news_md
python -m spacy download pl_core_news_md
python -m spacy download ru_core_news_md
python -m spacy download uk_core_news_md
python -m spacy download zh_core_news_md
python -m spacy download ro_core_news_md
python -m spacy download it_core_news_md
python -m spacy download fr_core_news_md
python -m spacy download es_core_news_md
python -m spacy download de_core_news_lg # Or _md or _sm
BASE_URL=localhost
APP_NAME=rosa-graph
APP_DESCRIPTION=A forced graph that shows the lemma connections in works of Rosa Luxemburg
CONTACT_MAIL=
COMPANY_NAME=
STREET_ADDRESS=
CITY=
ZIP_CODE=
COUNTRY=
LEGAL_NAME=
HEADER_IMAGE=static/header.png
FOOTER_IMPRINT=rosa-graph
CODEBERG_USERNAME=
CODEBERG_URL=h
KEYWORDS=77
GEOCODE_API_KEY=
You will need an api key from https://geocode.maps.co/
cd /path/to/your/app
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
sudo docker run -p 5000:5000 -e BASE_URL="http://localhost:5000" -e APP_NAME="your app name" --name container-name name
The hamburger navigation will automatically populate.
-
Create folder
-
Create index.md in folder as a landing-page
---
title:
author:
date: 2024-06-05 10:00
slug: index
language: en
---
<div id="nameofyourfolder-page-list">
<p>Loading our services...</p>
</div>
- Create your md files. They will appear in the index page-list.
You can add any meta-information and use it in your markdown file.
e.g. {{ page_metadata.yourmetaname }}
Meta information will render and connect to nodes.
add text desc
''' nodeenv -p '''
-
Markdown (BSD 3-Clause License) This is a Python implementation of John Gruber’s Markdown. https://python-markdown.github.io/
-
Quart (MIT License, Copyright 2017 Pallets) Quart is an asyncio reimplementation of the popular Flask microframework API. This means that if you understand Flask you understand Quart. https://quart.palletsprojects.com/en/latest/
-
Frontmatter (MIT License, Copyright Chris Amico) Jekyll-style YAML front matter offers a useful way to add arbitrary, structured metadata to text documents, regardless of type. https://python-frontmatter.readthedocs.io/en/latest/
-
Gunicorn (2009-2024 (c) Benoît Chesneau [email protected], 2009-2015 (c) Paul J. Davis [email protected]) gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications. https://github.com/benoitc/gunicorn/tree/master https://gunicorn.org
-
Hypercorn (MIT License, Copyright P G Jones 2018) Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn. https://github.com/pgjones/hypercorn/tree/main
-
Uvicorn (BSD 3-Clause "New" or "Revised" License, Copyright © 2017-present, Encode OSS Ltd. All rights reserved.) An ASGI web server, for Python. 🦄 https://github.com/encode/uvicorn/tree/master
-
Regex (Apache Software License, Matthew Barnett) This regex implementation is backwards-compatible with the standard 're' module, but offers additional functionality. https://github.com/mrabarnett/mrab-regex
-
Python-dotenv (BSD 3-Clause "New" or "Revised" License, Copyright (c) 2014, Saurabh Kumar (python-dotenv), 2013, Ted Tieken (django-dotenv-rw), 2013, Jacob Kaplan-Moss (django-dotenv)) https://github.com/theskumar/python-dotenv/tree/main
-
Spacy (The MIT License (MIT), Copyright (C) 2016-2024 ExplosionAI GmbH, 2016 spaCy GmbH, 2015 Matthew Honnibal) https://github.com/explosion/spaCy/blob/master/LICENSE
-
Textblob (Copyright Steven Loria and contributors) https://textblob.readthedocs.io/en/dev/license.html
-
Leaflet (The leaflet package as a whole is distributed under GPL-3 (GNU GENERAL PUBLIC LICENSE version 3).) https://github.com/rstudio/leaflet/blob/main/LICENSE.note
-
Open Street Map ( OpenStreetMap is open data, licensed under the Open Data Commons Open Database License (ODbL) by the OpenStreetMap Foundation (OSMF). https://www.openstreetmap.org/copyright
-
D3 forces (ISC license, Copyright 2010-2021 Mike Bostock) https://github.com/d3/d3-force