jeff1evesque / ist-664

Syracuse IST-664 Final Project with Chris Wilson (team member)
2 stars 3 forks source link

Apply generated random forest to chatbot #69

Closed jeff1evesque closed 5 years ago

jeff1evesque commented 5 years ago

We need to apply the random forest to the chatbot. Specifically, if the user input is predicted as a question, then chatbot will initiate.

jeff1evesque commented 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.
jeff1evesque commented 5 years ago

Instead of recoding the list comprehension, we should leverage our short replace function.