This class is an interface to Johan Bos's program Boxer, a
wide-coverage semantic parser that produces Discourse Representation
Structures (DRSs).
|
|
| __init__(self,
boxer_drs_interpreter=None,
elimeq=False,
bin_dir=None,
verbose=False) |
source code
|
|
|
|
|
|
|
interpret(self,
input,
discourse_id=None,
question=False,
verbose=False)
Use Boxer to give a first order representation. |
source code
|
|
|
|
|
|
|
batch_interpret(self,
inputs,
discourse_ids=None,
question=False,
verbose=False)
Use Boxer to give a first order representation. |
source code
|
|
|
|
|
|
|
_call_candc(self,
inputs,
discourse_ids,
question,
filename,
verbose=False)
Call the candc binary with the given input. |
source code
|
|
|
|
|
|
|
| _find_binary(self,
name,
bin_dir,
verbose=False) |
source code
|
|
|
|
_call(self,
input_str,
binary,
args=[],
verbose=False)
Call the binary with the given input. |
source code
|
|
|
|
| _parse_to_drs_dict(self,
boxer_out,
use_disc_id) |
source code
|
|
|
|
| _parse_drs(self,
drs_string,
discourse_id,
use_disc_id) |
source code
|
|