Closed jeff1evesque closed 5 years ago
The chatbot is not perfect. However, we have successfully applied the random forest classifier to predict whether the proposed line is a question. If the classifier predicts a question, then the chatbot engages:
root@development:/vagrant# python3 run.py
Starting interactive mode (first response will take a while):
> when will jeff complete his exploratory assignment?
NANI?
> I don't like eggnog!
> Is this a better question?
I don't think so.
Instead of recoding the list comprehension, we should leverage our short replace
function.
We need to apply the random forest to the chatbot. Specifically, if the user input is predicted as a question, then chatbot will initiate.