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_smcp application.example.yml application.ymlFill in all your keys
To load the default configuration:
cp application.default.yml application.ymlThe 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.pyor
for an easy installation, go to the Docker section.
-
/upload/: Upload your file to analyse- Method:
POST - Params:
uploadType:csv,txt,whatsapporzip - Files:
filewithFILE_CONTENT - Headers:
Authorization: Bearer - Returns: Data insight and
filenameof the Model. Thisfilenamemust 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:
successfulif key is correct
- Method:
-
/feedback/: Submit feedback to your data- Method:
POST - Params:
uuidisHelpfulmovieTitlesimilarClusterActivesearchfacetdeleteresultCount
- Headers:
Authorization: Bearer - Returns: queries as JSON
- Method:
-
Settings Type
display: Title Columncontent: Content Columnfilename: Filename (response from upload)language: Language to Analysetechniques:nltkorspacyclusterSize:large,mediumorsmallitemToAnalyse:all(display and content) orcontent
Use the Makefile:
make buildbuilds the docker containermake runruns the Flask App
docker exec -it docker_kenspace_backend bashor
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)