class Boxer(object): (source)
Constructor: Boxer(boxer_drs_interpreter, elimeq, bin_dir, verbose, resolve)
This class is an interface to Johan Bos's program Boxer, a wide-coverage semantic parser that produces Discourse Representation Structures (DRSs).
Method | __init__ |
AbstractBoxerDrs object hierarchy to a different object. The default is NltkDrtBoxerDrsInterpreter, which converts to the NLTK DRT hierarchy. :param elimeq: When set to true, Boxer removes all equalities from the DRSs and discourse referents standing in the equality relation are unified, but only if this can be done in a meaning-preserving manner... |
Method | interpret |
Use Boxer to give a first order representation. |
Method | interpret |
Use Boxer to give a first order representation. |
Method | interpret |
Use Boxer to give a first order representation. |
Method | interpret |
Use Boxer to give a first order representation. |
Method | set |
Undocumented |
Method | _call |
Call the binary with the given input. |
Method | _call |
Call the boxer binary with the given input. |
Method | _call |
Call the candc binary with the given input. |
Method | _find |
Undocumented |
Method | _parse |
Undocumented |
Method | _parse |
Undocumented |
Instance Variable | _boxer |
Undocumented |
Instance Variable | _boxer |
Undocumented |
Instance Variable | _candc |
Undocumented |
Instance Variable | _candc |
Undocumented |
Instance Variable | _elimeq |
Undocumented |
Instance Variable | _resolve |
Undocumented |
AbstractBoxerDrs object hierarchy to a different object. The default is NltkDrtBoxerDrsInterpreter, which converts to the NLTK DRT hierarchy. :param elimeq: When set to true, Boxer removes all equalities from the DRSs and discourse referents standing in the equality relation are unified, but only if this can be done in a meaning-preserving manner. :param resolve: When set to true, Boxer will resolve all anaphoric DRSs and perform merge-reduction. Resolution follows Van der Sandt's theory of binding and accommodation.
Parameters | |
boxer | A class that converts from the |
elimeq | Undocumented |
bin | Undocumented |
verbose | Undocumented |
resolve | Undocumented |
Use Boxer to give a first order representation.
Parameters | |
input | str Input sentence to parse |
discourse | str An identifier to be inserted to each occurrence-indexed predicate. |
question | Undocumented |
verbose | Undocumented |
occur | bool Should predicates be occurrence indexed? |
Returns | |
drt.DrtExpression |
Use Boxer to give a first order representation.
Parameters | |
input | list of str Input sentences to parse as a single discourse |
discourse | str An identifier to be inserted to each occurrence-indexed predicate. |
question | Undocumented |
verbose | Undocumented |
occur | bool Should predicates be occurrence indexed? |
Returns | |
drt.DrtExpression |
Use Boxer to give a first order representation.
Parameters | |
inputs | list of list of str Input discourses to parse |
discourse | list of str Identifiers to be inserted to each occurrence-indexed predicate. |
question | Undocumented |
verbose | Undocumented |
occur | bool Should predicates be occurrence indexed? |
Returns | |
drt.DrtExpression |
Use Boxer to give a first order representation.
Parameters | |
inputs | list of str Input sentences to parse as individual discourses |
discourse | list of str Identifiers to be inserted to each occurrence-indexed predicate. |
question | Undocumented |
verbose | Undocumented |
occur | bool Should predicates be occurrence indexed? |
Returns | |
list of drt.DrtExpression |
Call the binary with the given input.
Parameters | |
input | A string whose contents are used as stdin. |
binary | The location of the binary to call |
args | A list of command-line arguments. |
verbose | Undocumented |
Returns | |
stdout |
Call the boxer binary with the given input.
Parameters | |
candc | str output from C&C parser |
verbose | Undocumented |
Returns | |
stdout |