cross-readers/cross-reader.adj-pre
2019-03-20 17:17:58 +01:00
..
templates first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
txt first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
create_index.py first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
index.json first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
readings.py first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
README.md first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00
start.py first commit with 2 cross-reading prototypes 2019-03-20 17:17:58 +01:00

█▀▀ █▀▀█ █▀▀█ █▀▀ █▀▀ ░░ █▀▀█ █▀▀ █▀▀█ █▀▀▄ ░▀░ █▀▀▄ █▀▀▀ █▀▀ 
█░░ █▄▄▀ █░░█ ▀▀█ ▀▀█ ▀▀ █▄▄▀ █▀▀ █▄▄█ █░░█ ▀█▀ █░░█ █░▀█ ▀▀█ 
▀▀▀ ▀░▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ ░░ ▀░▀▀ ▀▀▀ ▀░░▀ ▀▀▀░ ▀▀▀ ▀░░▀ ▀▀▀▀ ▀▀▀ 

cross-reader - ADJ (adjectives) and PRE (prepositions)

(a few notes)

Install

$ pip3 install flask 

$ pip3 install nltk

 (follow nltk instructions to download a nltk pos.tagger)

Start

Start the flask/python local server ...

$ python3 start.py

Browse to your localhost on port 5000 ...

> 127.0.0.1:5000

Txt documents

The search machine is using the index.json file to process results.

The function 'create_index' can be called to generate this file. It uses a set of plain text files to index each word and its corresponding TFIDF value.

Changing txt documents

If you want to work with another set of texts, make a 'txt/' folder, add a few txt files in it, and remove the index.json file (or rename it if you want to keep it).

To generate a new index.json file:

Remove the index.json file

$ rm index.json

Stop and start the python server...

ctrl + c

$ python3 start.py