|
|
__init__(self,
discourse_id=None)
This class is used to parse the Prolog DRS output from Boxer into a
hierarchy of python objects. |
source code
|
|
|
|
|
|
|
|
|
|
handle(self,
tok,
context)
This method is intended to be overridden for logics that use
different operators or expressions |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| _handle_binary_expression(self,
make_callback) |
source code
|
|
|
|
|
|
|
|
|
|
| _make_merge_expression(self,
sent_index,
word_indices,
drs1,
drs2) |
source code
|
|
|
|
| _make_or_expression(self,
sent_index,
word_indices,
drs1,
drs2) |
source code
|
|
|
|
| _make_imp_expression(self,
sent_index,
word_indices,
drs1,
drs2) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from drt.DrtParser:
get_BooleanExpression_factory,
handle_DRS,
handle_conds,
handle_refs,
isvariable,
make_ApplicationExpression,
make_BooleanExpression,
make_EqualityExpression,
make_LambdaExpression,
make_NegatedExpression,
make_VariableExpression
Inherited from logic.LogicParser:
__repr__,
assertNextToken,
assertToken,
attempt_ApplicationExpression,
attempt_BooleanExpression,
attempt_EqualityExpression,
ensure_abstractable,
get_QuantifiedExpression_factory,
get_next_token_variable,
handle_lambda,
handle_negation,
handle_open,
handle_quant,
handle_variable,
has_priority,
inRange,
make_QuanifiedExpression,
parse_Expression,
process,
process_quoted_token,
token
|