-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create bot.py #34
base: master
Are you sure you want to change the base?
Create bot.py #34
Conversation
an artificially intelligent bot programmed in python to answer general queries about iit roorkee
LogisticRegressionClassifier.train(training_set) | ||
|
||
# print("LogisticRegression Accuracy:",nltk.classify.accuracy(LogisticRegressionClassifier,test_set)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Henlo friend. 🦄 Woah... this old bit again... 🦄
l.append(word.lower()) | ||
l1.append(word.lower()+w[0]) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi...🦄 So I read your PR... Something looks weird here. Are you sure about this? 🌈
global g_index | ||
global revDic | ||
# global data | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrmmm... Hrmm.. this looks funny...
#print(tr[0:10]) | ||
|
||
all_words=nltk.FreqDist(all_words) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me again, just one more nit...🌈 Are you sure about this?⚡
from nltk.classify import ClassifierI | ||
from nltk import ngrams | ||
from nltk.stem import WordNetLemmatizer | ||
from FocusWords import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me again, just one more nit...🌈 Frank is confused... 🌈🐼
answers = [i] | ||
#print(i,val) | ||
|
||
return answers if maxi > 1 else [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit... but... Are you sure about this?⚡
# BClassifier=SklearnClassifier(BernoulliNB()) | ||
# BClassifier.train(training_set) | ||
|
||
# print("BernoulliNB Accuracy:",nltk.classify.accuracy(BClassifier,test_set)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi...🦄 So I read your PR... Are you sure about this?⚡
an artificially intelligent bot programmed in python to answer general queries about iit roorkee