nltk.DiscourseTester.readings

DiscourseTester.readings(sentence=None, threaded=False, verbose=True, filter=False, show_thread_readings=False)[source]

Construct and show the readings of the discourse (or of a single sentence).

Parameters:
  • sentence (str) – test just this sentence
  • threaded – if True, print out each thread ID and the corresponding thread.
  • filter – if True, only print out consistent thread IDs and threads.