Пример #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()
Пример #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()
Пример #3
0
 def update(self, statement):
     """
     Modifies an entry in the database.
     Creates an entry if one does not exist.
     """
     raise AdapterNotImplementedError()
Пример #4
0
 def find(self, statement_text):
     """
     Returns a object from the database if it exists
     """
     raise AdapterNotImplementedError()
Пример #5
0
 def count(self):
     """
     Return the number of entries in the database.
     """
     raise AdapterNotImplementedError()
Пример #6
0
 def process_response(self, input_value):
     """
     Takes an input value.
     Returns an output value.
     """
     raise AdapterNotImplementedError()
Пример #7
0
 def should_answer(self, text):
     raise AdapterNotImplementedError()
Пример #8
0
 def insert(self, key):
     """
     Creates a new entry in the database.
     """
     raise AdapterNotImplementedError()
Пример #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()
Пример #10
0
 def get(self, text, list_of_statements, current_conversation=None):
     raise AdapterNotImplementedError()
Пример #11
0
 def process(self, statement):
     """
     Method that takes an input statement and returns
     a statement as output.
     """
     raise AdapterNotImplementedError()
Пример #12
0
 def process_input(self):
     """
     Returns data retrieved from the input source.
     """
     raise AdapterNotImplementedError()
Пример #13
0
 def get_response(self):
     raise AdapterNotImplementedError()
Пример #14
0
 def get_random(self):
     """
     Returns a random statement from the database
     """
     raise AdapterNotImplementedError()
Пример #15
0
 def process(self, text):
     raise AdapterNotImplementedError()
Пример #16
0
 def drop(self):
     """
     Drop the database attached to a given adapter.
     """
     raise AdapterNotImplementedError()
Пример #17
0
 def get(self, text, statement_list, current_conversation):
     raise AdapterNotImplementedError()