Package nltk :: Package inference :: Module discourse :: Class ReadingCommand
[hide private]
[frames] | no frames]

type ReadingCommand

source code

object --+
         |
        ReadingCommand
Known Subclasses:

Instance Methods [hide private]
 
parse_to_readings(self, sentence) source code
list of Expression
process_thread(self, sentence_readings)
This method should be used to handle dependencies between readings such as resolving anaphora.
source code
Expression
combine_readings(self, readings)
Returns: one combined reading
source code
Method Details [hide private]

parse_to_readings(self, sentence)

source code 
Parameters:
  • sentence (str) - the sentence to read

process_thread(self, sentence_readings)

source code 

This method should be used to handle dependencies between readings such as resolving anaphora.

Parameters:
  • sentence_readings (list of Expression) - readings to process
Returns: list of Expression
the list of readings after processing

combine_readings(self, readings)

source code 
Parameters:
  • readings (list of Expression) - readings to combine
Returns: Expression
one combined reading