nltk.DiscourseTester.add_sentence

DiscourseTester.add_sentence(sentence, informchk=False, consistchk=False)[source]

Add a sentence to the current discourse.

Updates self._input and self._sentences. :param sentence: An input sentence :type sentence: str :param informchk: if True, check that the result of adding the sentence is thread-informative. Updates self._readings. :param consistchk: if True, check that the result of adding the sentence is thread-consistent. Updates self._readings.