ChatterBot is an open-source Python chatbot project that reuses replies from stored statement–response pairs. It compares a new input with recorded statements using string edit distance, then returns the reply attached to the closest match. section 1.9
Its minimal response pipeline works by:
- Storing statements together with replies learned from human or machine dialogue. section 1.9
- Computing Levenshtein distance between the input and stored statements. section 1.9
- Searching the database by brute force and reusing the corresponding response. section 1.9
Salvius
A ChatterBot-based dialog engine helped Salvius, a mechanical robot built from salvaged parts, maintain convincing conversations without tokenization or feature generation. section 1.9
Figure 1.8 Example layers for an NLP pipeline
Use the NLP pipeline diagram to situate ChatterBot’s lightweight approach at the response-generation stage. section 1.9
