Running Boxer (client-server configuration)

You can also run Boxer with the web service version (based on soap) of the C&C tools. First start the server (note: if you use subversion you will need the option --candc-printer boxer):

% bin/soap_server --models /home/bos/models --server localhost:9000 --candc-printer prolog
waiting for connections on localhost:9000

Then activate the client:

% echo "Mia walks . " | bin/soap_client

This will give the following output on the server side:

read 13 characters of input
# this file was generated by the following command(s):
#   bin/soap_server --models /home/bos/models --server localhost:9000 --candc-printer prolog

1 parsed at B=0.075, K=20
1 coverage 100%
1 stats 2.19722 36 39
done
waiting for connections on localhost:9000

and this at the client side:

% this file was generated by the following command(s):
%   bin/soap_server --models /home/bos/models --server localhost:9000 --candc-printer prolog

:- multifile word/8, sem/2, id/2.
:- discontiguous word/8, sem/2, id/2.
:- dynamic word/8, sem/2, id/2.

sem(1,
 other(right_punct,'S[dcl]',
  bapp('S[dcl]',
   lex('N','NP',
    leaf(1,1,'N')),
   leaf(1,2,'S[dcl]\NP')),
  leaf(1,3,'.'))).

word(1, 1, 'Mia', 'Mia', 'NNP', 'I-NP', 'I-PERSON', 'N').
word(1, 2, 'walks', 'walk', 'VBZ', 'I-VP', 'O', 'S[dcl]\NP').
word(1, 3, '.', '.', '.', 'O', 'O', '.').

And this output of the CCG-parser can be used as input to Boxer as described here.