Main repository for Mapa76 project (in spanish).
- Ruby 1.9+
- Bundler (
- MongoDB server
- Redis server
- Docsplit dependencies
- FreeLing 3.0
- Poppler 0.20+
MongoDB and Redis servers
On Debian / Ubuntu machines, install from the package manager:
# apt-get install mongodb mongodb-server redis-server
bundle install to install all gem dependencies.
$ bundle install
Create your MongoDB and Resque configuration files based on the sample files, and modify the connection options to suit your needs:
$ cp config/mongoid.yml.sample config/mongoid.yml $ cp config/resque.yml.sample config/resque.yml
If the servers will be running on the same machine as Mapa76, you don't need to change anything.
You should also install most of the dependencies listed in Docsplit documentation.
Download the tarball of Poppler
0.20.1 and extract it
apt-get build-dep poppler-utils to make sure you have all of its
dependencies. Then, just execute
make install as
The NER module currently uses FreeLing, an open source suite of language analyzers written in C++.
This has been tested on FreeLing 3.0a1 only. Because this is an alpha release, there are no binary packages available. You can download the source here (114Mb~) and compile it.
Compile and Install
For compiling the source, you need the
libicu libraries. On Debian / Ubuntu machines, you can run:
# apt-get install build-essential libboost-dev libboost-filesystem-dev \ libboost-program-options-dev libboost-regex-dev \ libicu-dev
Then, just execute
make install as usual.
Start the Padrino server and visit http://localhost:3000/
$ bundle exec padrino start
To start workers for document processing, you need to run at least one Resque worker:
$ QUEUE=* VERBOSE=1 bundle exec rake resque:work
you can run multiple workers with the
$ COUNT=2 QUEUE=* bundle exec rake resque:workers
Restart to 0
To remove everything from the database and restart all to 0 just run:
$ rake mi:drop && redis-cli FLUSHALL && rake anm:load