headless

Copyright (C) IPI PAN, 2013-2016. All rights reserved.
Available under the terms of the GNU General Public License;
see the COPYING file for details.

ABOUT
headless is a simple commandline client for Poliqarp2 linguistic search engine.

Poliqarp2 homepage:
sourceforge (download and bugtracker): http://sourceforge.net/projects/poliqarp2/

Authors:
Bartosz Zaborowski [bartosz.zaborowski@ipipan.waw.pl]
Aleksander Zabłocki [olekz@mimuw.edu.pl]

INSTALLATION
The tool requires Python with the 'requests' package installed to operate properly.
No other compilation/installation is needed.

CONFIGURATION
Server address and port, as well as API username and password may be changed in the
first lines of the included pq_client.py library.

BASIC USAGE
./headless_pq_client.py <input file>

The input file is read and each line is executed. The syntax is:
* comments - starting from %
* setting changes - lines starting from @ followed by keyword and '=', the keywords are:
  - flags = <value> : concatenated global flags settings in the form /flag1/flag2/flag3
  - display <node_type> <attribute> : determines what to show when displaying results
  - corpus_identifier = <identifier> : changes current corpus
  - any other setting key/value pair exposed in API
* queries - any other nonempty lines, one query per line.

Empty lines are ignored

EXAMPLES

example_input.hin contains a short example of the input file. Requires server to be
running and a corpus with identifier 'example' available.

