Git Product home page Git Product logo

certainty-backend's Introduction

Installation

This installation was tested on a Ubuntu 18.04.1 machine.

Clone this repository

git clone https://github.com/papeldeorigami/certainty-backend
cd certainty-backend

OpenSmile

Install OpenSmile from their website: [https://www.audeering.com/download/1318/]

Extract the files to the local folder:

tar -xvzf opensmile-2.3.0.tar.gz

Execute './buildStandalone.sh'

Notice: in Ubuntu 18.04, it is necessary to add the "-Wno-narrowing" CPP flags to the buildStandalone.sh file (lines 45-46), otherwise it won't compile:

export CXXFLAGS="-O2 -mfpmath=sse -msse2 -Wno-narrowing"
export CFLAGS="-O2 -mfpmath=sse -msse2 -Wno-narrowing"

Python

We use the python3 from the Ubuntu repositories. However, a few libs are necessary, and they can be installed with the following command:

sudo apt install python3-pip python3-pandas python3-sklearn
sudo pip3 install hmmlearn

Next, setup the path for the OpenSmile installation in the script below, by editing its source code directly:

scripts/classify.py

NodeJS

We recommend installing the nvm to manage dependencies. Use this command, extracted from their installation instructions:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

After the installation is complete, you should type this command:

nvm install 11

This should be enough to get the NodeJS version 11.x installed (we've tested with v11.1.0).

Then, in the project's folder, execute:

npm install

That is it. Your backend is ready to be used.

How to execute

npm start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.