https://github.com/ausgerechnet/spheroscope
web app for argumentation mining
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Repository
web app for argumentation mining
Basic Info
Statistics
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 9
- Releases: 3
Metadata Files
README.md
spheroscope
spheroscope is a web app designated to argumentation mining. The backend is based on cwb-ccc, which runs multiply anchored CQP queries.
Setup
Prerequisites
You will need a working installation of the IMS Open Corpus Workbench (CWB), a CWB-indexed corpus, as well as word embeddings for most of what this app offers. The Python3 dependencies will be installed automatically if you follow the setup guide below.
Installation
The recommended way is to use pipenv:
python -m pip install pipenv
pipenv install --dev
which creates a virtual environment and installs all required packages specified in the Pipfile.
Alternatively, you can use setup.py or the complete requirements file.
Configuration
Configure the app via cfg.py in the app folder. You can find an example config file in the repository.
- set
REGISTRY_PATHto your CWB registry - set
CACHE_PATHto some directory where you have write access - set
DB_NAME(sqlite3file relative to instance),DB_USERNAMEandDB_PASSWORDfor your local database - set
REMOTE_USERNAMEandREMOTE_PASSWORDif you have access to the remote database - set
EMBEDDINGSto a dictionary ofCWB_HANDLE:EMBEDDINGS_PATH
Loading Resources
You can then
make init
to create the database and
make library
to populate your local instance with all queries, macros, and wordlists from the library.
If you have access to the remote database, you can also
make patterns
make gold
to get the latest versions of patterns and adjudicated annotation (the "gold standard").
Running in Development Mode
You can now start the development flask server via
make run
and navigate to http://127.0.0.1:5000/ to access the interface.
Running in Production
Requirements:
sudo apt install apache2-dev
Clone the repository and cd into the folder. Virtual environment:
python3 -m venv venv
. venv/bin/activate
pip install .
pip install mod_wsgi
Create & modify cfg.py. Initialise the database:
FLASK_APP=spheroscope
flask init-db
flask import-lib
Run the WSGI server:
mod_wsgi-express start-server wsgi.py --processes 4
Corpus Settings
After starting the app, you will find default corpus settings in your instance folder. You can change the defaults to your liking, taking into consideration the most common p- and s-attributes of your system corpora.
When selecting one of your corpora for the first time through the interface, a new folder and config file will be created for this corpus in your instance folder; the config file will be populated with the corpus defaults. Most settings, such as the query and display parameters, can be changed through the interface (http://127.0.0.1:5000/corpora/).
If you want to use similarity-based recommendations for wordlists, you should point the embeddings parameter to appropriate embeddings stored as pymagnitude files.
License
The gold standard is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC-BY-SA 4.0). 
The code and all other assets are licensed under the GNU General Public License version 3 (GPL-3).
Owner
- Name: Philipp Heinrich
- Login: ausgerechnet
- Kind: user
- Location: Erlangen
- Company: @fau-klue
- Website: https://philipp-heinrich.eu
- Repositories: 2
- Profile: https://github.com/ausgerechnet
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Dependencies
- pytest >=5.2.0 develop
- pytest-cov ==2.6.1 develop
- setuptools ==60.8.2 develop
- twine * develop
- wheel * develop
- Flask >=2.0,<2.1
- Flask-SQLAlchemy >=2.5,<2.6
- cwb-ccc ==0.10.2
- psycopg2-binary *
- pymagnitude >=0.1.140,<0.2
- pipenv ==2022.1.8
- Flask >=2.0,<2.1
- Flask-SQLAlchemy >=2.5,<2.6
- cwb-ccc ==0.10.2
- psycopg2-binary >=2.9,<3
- pymagnitude >=0.1.140,<0.2