Pre-Alpha version (19 Dec 2022)

Note:

This programme is provided without any kind of guarantee and includes a number of free and open source libraries. We kindly ask you to use this programme with caution since it is in Pre-Alpha release. Your system’s problems or damage are not the responsibility of The Drjslab. The usage of free and open-source libraries in this programme is not subject to any claims of intellectual property by Drjslab. For further information, please see the Credit page.

The Installation Process for Project: M.A.N.S.I

This software inherits a number of open-source packages and libraries. You can observe different installations being made to activate this software. To run this application locally, you must carefully follow all the instructions. For this software to function, a Discord bot with its key is also required.

Essential OS

We do not now support Windows-based operating systems; instead, Debian-based OS is advised for easier installation and smoother operation.

Pre-requisite

  1. check if you have python 3.0+ installed in ubuntu
  2. check if you have Docker & Docker-Compose installation in ubuntu
  3. check if you have git installed in ubuntu

Downalod applicaton from git or drjslab

Update variable file

  1. move to ../mansi-arct/installation
  2. open file variable.
  3. update required Variables
  4. run following command
				
					./updateVariable.sh
				
			

Install CMAKE

CMake is an open-source, cross-platform family of tools designed to build, test and package software. Install this application from following command.[2]

				
					sudo apt-get -y install cmake
				
			

Install Graph Database & RabbitMQ

OrientDB: OrientDB is the first Multi-Model Open Source NoSQL DBMS that combines the power of graphs and the flexibility of documents into one scalable, high-performance operational database.[3]

Rabbit MQ: RabbitMQ is lightweight and easy to deploy on premises and in the cloud. It supports multiple messaging protocols. RabbitMQ can be deployed in distributed and federated configurations to meet high-scale, high-availability requirements.[4]

  1. move to ../mansi-arct/installation/
  2. run following command
				
					sudo docker-compose up -d
				
			

Install basic python packages

				
					pip3 install -r requirements.txt
				
			

Install Snip-Nlu

Snips NLU is a Natural Language Understanding python library that allows to parse sentences written in natural language, and extract structured information [1].

				
					install Cython
pip3 install Cython
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip3 install setuptools-rust
pip3 install snips-nlu
				
			

Load language (Required)

				
					snips-nlu download en
				
			

Extra dependency for metrics (Optional)

				
					pip install 'snips-nlu[metrics]'
				
			

Install tesseract for OCR

Tesseract is an open source text recognition (OCR) Engine.

				
					sudo apt-get install tesseract-ocr -y
				
			

Install pyyorient specific version to connect OrientDB

				
					pip3 install -e git+https://github.com/orientechnologies/pyorient.git@master#egg=pyorient
				
			

Starting application

Start Phase I

  1. move to mansi-arct/PhaseI
  2. Fire following command

check chat application, your chatbot will be send you message “I am online.”

				
					python3 start.py 
				
			

Start Phase II

  1. move to mansi-arct/PhaseII
  2. Fire following command
				
					python3 start.py 
				
			

Citations

[1] Snips Natural Language Understanding — Snips NLU 0.20.2 Documentation. snips-nlu.readthedocs.io/en/latest. Accessed 16 Oct. 2022.

[2] CMake. cmake.org. Accessed 16 Oct. 2022.

[3] Home | OrientDB Community Edition. orientdb.org. Accessed 16 Oct. 2022.

[4] Messaging That Just Works — RabbitMQ. www.rabbitmq.com. Accessed 16 Oct. 2022.

[5] “GitHub – Tesseract-ocr/Tesseract: Tesseract Open Source OCR Engine (Main Repository).” GitHub, github.com/tesseract-ocr/tesseract. Accessed 16 Oct. 2022.