KenSpace: Explorative und komplexe Suchen auf unstrukturierte Dokumente
- https://github.com/pandermatt/BA20-KenSpace-Frontend
- https://github.com/pandermatt/BA20-KenSpace-Backend
- https://github.com/pandermatt/BA20-KenSpace-Documentation
- https://github.com/theCoder95/BA20-KenSpace-Research
git clone [email protected]:pandermatt/ba20-kenspace-backend.git
cd ba20-kenspace-backend
pip install -r requirements.txt
python -m spacy download en_core_web_sm
python -m spacy download de_core_news_sm
cp application.example.yml application.yml
Fill in all your keys
To load the default configuration:
cp application.default.yml application.yml
The Data must be copied from https://github.com/pandermatt/ba20-kenspace-case-study-data or downloaded by yourself. If you do not want to download the standard data, you can use the upload.
Warning
python app.py
or
for an easy installation, go to the Docker section.
-
/upload/
: Upload your file to analyse- Method:
POST
- Params:
uploadType
:csv
,txt
,whatsapp
orzip
- Files:
file
withFILE_CONTENT
- Headers:
Authorization: Bearer
- Returns: Data insight and
filename
of the Model. Thisfilename
must be included in the Cluster Settings.
- Method:
-
/queries/
: Generate your Queries- Method:
GET
- Params:
uuid
: Model ID,deletedWords
: Array of Deleted- / Stop words,settings
- Headers:
Authorization: Bearer
- Returns: queries as JSON
- Method:
-
/auth/
: Generate your Queries- Method:
GET
- Headers:
Authorization: Bearer
- Returns:
successful
if key is correct
- Method:
-
/feedback/
: Submit feedback to your data- Method:
POST
- Params:
uuid
isHelpful
movieTitle
similarClusterActive
search
facet
delete
resultCount
- Headers:
Authorization: Bearer
- Returns: queries as JSON
- Method:
-
Settings Type
display
: Title Columncontent
: Content Columnfilename
: Filename (response from upload)language
: Language to Analysetechniques
:nltk
orspacy
clusterSize
:large
,medium
orsmall
itemToAnalyse
:all
(display and content) orcontent
Use the Makefile
:
make build
builds the docker containermake run
runs the Flask App
docker exec -it docker_kenspace_backend bash
or
docker ps
docker exec -it <docker-container> bash
- List all containers (only IDs)
docker ps -aq
- Stop all running containers
docker stop $(docker ps -aq)
WARNING: this will delete all your docker images
- Remove all containers
docker rm $(docker ps -aq)
- Remove all images
docker rmi $(docker images -q)