Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

abhishekjiitr
Copy link

an artificially intelligent bot programmed in python to answer general queries about iit roorkee

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))

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])


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

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)

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 *

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 []

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))

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?⚡

@abhishekjiitr
Copy link
Author

Wow !
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants