nltk.DiscourseTester.add_sentence¶
-
DiscourseTester.
add_sentence
(sentence, informchk=False, consistchk=False)[source]¶ Add a sentence to the current discourse.
Updates
self._input
andself._sentences
. :param sentence: An input sentence :type sentence: str :param informchk: ifTrue
, check that the result of adding the sentence is thread-informative. Updatesself._readings
. :param consistchk: ifTrue
, check that the result of adding the sentence is thread-consistent. Updatesself._readings
.