A-Bougiouklis / logos

🦾 Docker and Django Neomodel NLP application base. It converts text into a graph.
MIT License
1 stars 0 forks source link

question - how to input text? #14

Open whatSocks opened 2 years ago

whatSocks commented 2 years ago

I can't tell from the readme and would like to try. I have the app running successfully and have tried several variations of:

docker exec -it logos_backend_1 python core/analysis/

with result:

/usr/local/bin/python: can't find '__main__' module in '/usr/src/app/web/core/analysis/'

A-Bougiouklis commented 2 years ago

Hello and thank you for your interest. This repository includes just the fundamentals to base an app upon. If you want to input some text you will need to call document_analysis with your text. For example:

document_analysis("The dog ate the cat food", {})

You can either create a django view and call this method with your text or you can just execute the test_document_analysis_creates_entity_graph with a different sentence text. When you run the method by itself or the test you can check the http://localhost:7474/browser/ for the node graph.