thomjur / PyCollocation

Python module to do simple collocation analysis of a corpus.
GNU General Public License v3.0
0 stars 1 forks source link

Create a html GUI #18

Open trutzig89182 opened 2 years ago

trutzig89182 commented 2 years ago

Perhaps we could create a html interface using flask. But we would have discuss if that is something of value for this project or not first.

thomjur commented 2 years ago

I also thought about that, I think it is a good idea and we should at least try and implement something like this. I mean, this project is also about learning new stuff, so why not. My only experience with GUIs is again Java (Swing). I also created some websites with Flask/Django, but I did not pay any attention to the actual GUI. :D

trutzig89182 commented 2 years ago

One way to buld a GUI could be the electron package from npm, which is JavaScript based. Seems more elegant than flask/django.

Roughly JavaScript would be the interface between the html and the python script.

https://efficientcoder.net/using-python-with-electron-tutorial/

https://medium.com/how-to-electron/a-complete-guide-to-packaging-your-electron-app-1bdc717d739f

thomjur commented 2 years ago

Looks interesting as well. I just have no clue what is best, I think we can pick one direction and simply try it out.

thomjur commented 2 years ago

I've been working quite a lot with Docker recently. If we stick to the CLI interface, using Docker might also be a solution. I am quite busy with other stuff recently, but I hope to be able to work some more on our project next week.

trutzig89182 commented 2 years ago

I only have been using docker for a web app so far. I have succeeded to build a dummy interface and will try to make it exchange information with the python scripts next.

What seems to be a bit more complicated is handing over the local path of the corpus, as html is very restrictive about access to local directories.

Another question is to design the output.