Exemple #1
0
 def remove(self, statement_text):
     """
     Removes the statement that matches the input text.
     Removes any responses from statements where the response text matches
     the input text.
     """
     raise AdapterNotImplementedError()
Exemple #2
0
 def filter(self, **kwargs):
     """
     Returns a list of objects from the database.
     The kwargs parameter can contain any number
     of attributes. Only objects which contain
     all listed attributes and in which all values
     match for all listed attributes will be returned.
     """
     raise AdapterNotImplementedError()
Exemple #3
0
 def update(self, statement):
     """
     Modifies an entry in the database.
     Creates an entry if one does not exist.
     """
     raise AdapterNotImplementedError()
Exemple #4
0
 def find(self, statement_text):
     """
     Returns a object from the database if it exists
     """
     raise AdapterNotImplementedError()
Exemple #5
0
 def count(self):
     """
     Return the number of entries in the database.
     """
     raise AdapterNotImplementedError()
Exemple #6
0
 def process_response(self, input_value):
     """
     Takes an input value.
     Returns an output value.
     """
     raise AdapterNotImplementedError()
Exemple #7
0
 def should_answer(self, text):
     raise AdapterNotImplementedError()
Exemple #8
0
 def insert(self, key):
     """
     Creates a new entry in the database.
     """
     raise AdapterNotImplementedError()
Exemple #9
0
 def get(self, input_statement, statement_list=None):
     """
     This method should be overridden with one to select a match
     based on the input statement.
     """
     raise AdapterNotImplementedError()
Exemple #10
0
 def get(self, text, list_of_statements, current_conversation=None):
     raise AdapterNotImplementedError()
Exemple #11
0
 def process(self, statement):
     """
     Method that takes an input statement and returns
     a statement as output.
     """
     raise AdapterNotImplementedError()
Exemple #12
0
 def process_input(self):
     """
     Returns data retrieved from the input source.
     """
     raise AdapterNotImplementedError()
Exemple #13
0
 def get_response(self):
     raise AdapterNotImplementedError()
Exemple #14
0
 def get_random(self):
     """
     Returns a random statement from the database
     """
     raise AdapterNotImplementedError()
Exemple #15
0
 def process(self, text):
     raise AdapterNotImplementedError()
Exemple #16
0
 def drop(self):
     """
     Drop the database attached to a given adapter.
     """
     raise AdapterNotImplementedError()
Exemple #17
0
 def get(self, text, statement_list, current_conversation):
     raise AdapterNotImplementedError()