MQuery is an HTTP API server for mining language corpora using Manatee-Open engine.
- a working Linux server with installed Manatee-open library
- Redis database
- Go language compiler and tools
- (optional) an HTTP proxy server (Nginx, Apache, ...)
- Install
Golanguage environment, either via a package manager or manually from Go download page- make sure
/usr/local/go/binand~/go/binare in your$PATHso you can run any installed Go tools without specifying a full path
- make sure
- Install Manatee-open from the download page. No specific language bindings are required.
configure --with-pcre --disable-python && make && sudo make install && sudo ldconfig
- Get MQuery sources (
git clone --depth 1 https://github.com/czcorpus/mquery.git) - Run
./configure - Run
make - Run
make install- the application will be installed in
/opt/mquery - for data and registry,
/var/opt/corpora/dataand/var/opt/corpora/registrydirectories will be created - systemd services
mquery-server.serviceandmquery-worker-all.targetwill be created
- the application will be installed in
- Copy at least one corpus and its configuration (registry) into respective directories (
/var/opt/corpora/data,/var/opt/corpora/registry) - Update corpora entries in
/opt/mquery/conf.jsonfile to match your installed corpora - start the service:
systemctl start mquery-serversystemctl start mquery-worker-all.target
For the most recent API Docs, please see https://korpus.cz/mquery-test/docs/