nltk.Boxer.interpret

Boxer.interpret(input, discourse_id=None, question=False, verbose=False)[source]

Use Boxer to give a first order representation.

Parameters:
  • input – str Input sentence to parse
  • occur_index – bool Should predicates be occurrence indexed?
  • discourse_id – str An identifier to be inserted to each occurrence-indexed predicate.
Returns:

drt.DrtExpression