Support #604
Updated by Daniel Curtis over 9 years ago
This is a guide for installing the intelligent personal assistant Sirius on Ubuntu 14.04 minimal. h2. Prepare the environment * Make sure the system is up to date: <pre> sudo -s apt-get update && apt-get upgrade </pre> * Install git, wget, and unzip: <pre> apt-get install git wget unzip </pre> h2. Install the Sirius Application * Clone sirius from github: <pre> git clone https://github.com/jhauswald/sirius.git cd sirius/sirius-application tar xzf question-answer.tar.gz </pre> * Add additional repositories for ffmpeg <pre> add-apt-repository ppa:kirillshkrogalev/ffmpeg-next </pre> * Enable multiverse sources for libfaac-dev <pre> apt-add-repository multiverse </pre> * Update sources and install basic dependencies <pre> apt-get update apt-get install git zip unzip subversion sox default-jdk ant automake autoconf libtool bison libboost-all-dev ffmpeg swig python-pip curl </pre> * Install opencv dependencies <pre> apt-get install build-essential checkinstall git cmake libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev </pre> * Install tessaract text recognition <pre> apt-get install tesseract-ocr tesseract-ocr-eng libtesseract-dev libleptonica-dev </pre> * Install ATLAS library for Kaldi <pre> apt-get install libatlas-dev libatlas-base-dev </pre> * Install protobuf for image-matching <pre> apt-get install libprotobuf-dev protobuf-compiler </pre> * Install dependencies for the web application <pre> pip install wtforms Flask requests pickledb </pre> h3. Install opencv * Clone opencv from github <pre> git clone https://github.com/Itseez/opencv.git opencv-2.4.9 cd opencv-2.4.9 git checkout 2.4.9 </pre> * Build and install opencv <pre> mkdir build cd build cmake .. make -j4 make -j4 install </pre> * Prepare kaldi <pre> cd ~/sirius/sirius-application/speech-recognition/kaldi/scripts ~/sirius/sirius-application/speech-recognition/kaldi ./prepare.sh </pre> h2. Running Sirius * Extract the Wikipedia database (after untaring and building question-answer): <pre> cd ~/sirius wget http://web.eecs.umich.edu/~jahausw/download/wiki_indri_index.tar.gz tar xzvf wiki_indri_index.tar.gz -C question-answer/ </pre> * In run-scripts/, open the QA server: <pre> ./start-qa-server.sh </pre> * In a separate terminal, test QA using: <pre> ./sirius-qa-test.sh "what is the speed of light" </pre> h2. Resources * http://sirius.clarity-lab.org/sirius/ * https://github.com/jhauswald/sirius