This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
alexlag edited this page Dec 24, 2014
·
3 revisions
Assuming you have created virtual machine vmname with Ubuntu 12.04
You need to install git and other dependencies:
sudo apt-get install autoconf bison curl gawk sqlite3 libtool build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libsqlite3-dev git-core
You need to install ruby 2.1.0+. You can use any method, here are some examples
Clone AnnotameLE repo
git clone https://github.com/alexlag/annotamele.git
Build and install gem (you might add sudo to install command, depending on ruby installation)
cd annotamele
gem build annotamele.gemspec
gem install annotamele-0.1.0.gem
Version of gem file may vary.
To create AnnotameLE instance, use annotamele -f path/to/config.json
Configuration file with comments(not copy-ready, json files don't support comments):
{
# Either 'gem' or 'sudo gem', depends on Ruby install
"gem_command":"gem",
# Either 'rake' or 'sudo rake', depends on Ruby install
"rake_command":"rake",
# Name of you application, currently for creating app directory
"app_name":"test",
# main AnnotameLE config
"annotamele": {
# Array of types for questions
"types": [
{
# Either singlelabel or multilabel currently
"name": "singlelabel",
# Parameters for type
"params": [
# Question to be asked
"Classification question?",
# Array of answer options as strings
["Answer 1", "Answer 2"]
]
}
],
# Absolute path to dataset file
"dataset":"/path/to/dataset.json"
},
# Pick either you provide email options or not. Currently emails are only used in password recovery for users
"email_settings":true,
# Common options
"email_config": {
"sender": "[email protected]",
"smtp": "smtp.google.com",
"domain":"google.com",
"port": 25,
"username": "",
"password": ""
},
# Production settings, also currently irrelevant
"production":true,
"production_settings":{
# url to be used as base, *.at.ispras.ru for our cloud
"url":"test.at.ispras.ru"
}
}