You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
416 B
17 lines
416 B
7 years ago
|
from __future__ import unicode_literals
|
||
|
from .output_adapter import OutputAdapter
|
||
|
|
||
|
|
||
|
class TerminalAdapter(OutputAdapter):
|
||
|
"""
|
||
|
A simple adapter that allows ChatterBot to
|
||
|
communicate through the terminal.
|
||
|
"""
|
||
|
|
||
|
def process_response(self, statement, session_id=None):
|
||
|
"""
|
||
|
Print the response to the user's input.
|
||
|
"""
|
||
|
print(statement.text)
|
||
|
return statement.text
|