<commit_before># Prolog project
## Logic Programming Assignment

    Part #1: Natural language processing and conversion to Prolog queries/programs
    Part #2: Main engine - sets of rules used to solve your chosen problem
    Part #3: All integrated through a graphical interface

## Challenge
Query Plan: Given a database of geographical sites (countries, rivers, forests etc), your program should be able to parse a question in natural language and translate it to a database query (a la Prolog), execute the query and use a graphical interface to represent the input and output.

## How to use
[load].   (to load all the files)  
intro.    (for program instructions, optional)  
query_db. (start querying the program)  

# GUI Mode
## How to deploy prolog server
./start.sh  
Then go to: localhost:3000/server/index.html and have fun.

## Test with BOT
./dependencies.sh  
python mrBOT.py  
Sit back and enjoy!

## Work done by
<NAME> - 200804562  
<NAME> - 200802530

(Tested with SWI-Prolog version 6.6.4 for amd64)<commit_msg>merging<commit_after># Prolog project
## Logic Programming Assignment

    Part #1: Natural language processing and conversion to Prolog queries/programs
    Part #2: Main engine - sets of rules used to solve your chosen problem
    Part #3: All integrated through a graphical interface

## Challenge
Query Plan: Given a database of geographical sites (countries, rivers, forests etc), your program should be able to parse a question in natural language and translate it to a database query (a la Prolog), execute the query and use a graphical interface to represent the input and output.

## How to use
[load].   (to load all the files)  
intro.    (for program instructions, optional)  
query_db. (start querying the program)  

# GUI Mode
## How to deploy prolog server
./start.sh  
Then go to: localhost:3000/server/index.html and have fun.

## Test with BOT
./dependencies.sh  
python mrBOT.py  
Sit back and enjoy!

## Work done by
<NAME> - 200804562  
<NAME> - 200802530

(Tested with SWI-Prolog version 6.6.4 for amd64 and python2.7)
{'fraction_non_alphanumeric': 0.0699132111861138, 'fraction_numerical': 0.029893924783027964, 'mean_word_length': 3.8255813953488373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1606671', 'n_tokens_mistral': 633, 'n_tokens_neox': 575, 'n_words': 289}