-
Notifications
You must be signed in to change notification settings - Fork 15
Installation
The Crowdtruth framework is a web application, which runs on a web server with a MongoDB database. It connects to other services (CrowdFlower and Amazon Mechanical Turk) via their application program interface (API). Crowdtruth has been developed using the Laravel PHP framework (PHP based) and a wide range of tools:
In the following installation guide, we will walk you through the installation of the following items:
- A PHP enabled web server
- The Laravel framework using composer
- A Mongo DB server
- CrowdTruth
- Download and install a webserver. For instance Apache, or try WAMP to get a webserver running quickly on Windows.
- Make sure rewrite_module and virtual hosts are enabled
For Apache on windows, edit
/bin/apache/apache*/conf/httpd.conf
and remove # from the beginning of the linesLoadModule rewrite_module modules/mod_rewrite.so
andInclude conf/extra/httpd-vhosts.conf
- Create a virtual host for your application
For Apache on Windows, edit
/bin/apache/apache*/conf/extra/httpd-vhosts.conf
and include the following code<VirtualHost *:80> DocumentRoot "C:/<installation_folder>/www/crowdtruth/public" ServerName crowdtruth ServerAlias crowdtruth </VirtualHost>
- On Windows, edit your hosts file at
C:\Windows\System32\drivers\etc\hosts
to include:127.0.0.1 crowdtruth
. This tells your computer that when connections made to http://crowdtruth should be resolved to IP 127.0.0.1 (localhost). - Restart Apache
Composer is a tool for dependency management in PHP. It will install the dependent libraries of CrowdTruth for you.
- Download and install Composer
- Download the latest stable version of CrowdTruth
- Put the source code of CrowdTruth in your
/www/
folder
Composer is a tool for dependency management in PHP. It will install the dependent libraries of CrowdTruth now for you.
- Run
composer update
from your CrowdTruth installation directory
- Download and Install MongoDB
- (Optional): A useful tool for inspecting and exploring your MongoDB instance is Robomongo.
- Start MongoDB
- On Windows, open a command prompt and browse to
C:\Program Files\MongoDB\server\3.2\bin
. Create a directory for your database:mkdir c:\data
. Start the mongod service using that data directory with:mongod.exe --dbpath c:\data
. If you close the window MongoDB will stop.
- On Windows, open a command prompt and browse to
- Download the MongoDB PHP extension
- Extract
php_mongo-<version>-vc11.dll
(or x86_64 for 64bit) to/bin/php/php<version>/ext/
and rename it tophp_mongo.dll
. - Add the following line to your
php.ini
configuration file:extension=php_mongo.dll
- Restart your webserver
After installation, please continue with the configuration of your CrowdTruth instance. After that you can follow the guide to get started.
- Home
- Setting up
- Using CrowdTruth
-
Templates
- Creating Templates
- Managing Templates
- Code Snippets
-
Templates for Texts
- Medical Factors
- Medical Relation Extraction
- Medical Relation Direction
- Medical Relation Extraction and Direction
- News Events
- Question Answer Justification
- Passage Alignment
- Relevant News Snippets Identification
- Tweet Event Type Identification
- Sentiment Analysis
- Tweets Novelty Ranking
- Event&Time Mentions Annotation in News
- Events and Event Role Fillers Extraction in Text
- Phrase clustering
- Relevant Word Phrases in Text
- Primary Word Phrase Identification
- Templates for Images
- Templates for Sounds
- Templates for Videos
- Extending CrowdTruth