mrjay10 / banking-faq-bot Goto Github PK
View Code? Open in Web Editor NEWThis is retrieval based Chatbot based on FAQs found at a banking website.
This is retrieval based Chatbot based on FAQs found at a banking website.
Is there any way to test the numerical accuracy of the bank faqbot code against a data set of questions and answers? I was curious since your code seems very streamlined and efficient.
Warning (from warnings module):
File "/Users/RawanAbdullah/Documents/chatbotQu.py", line 7
from collections import Mapping, defaultdict
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
Traceback (most recent call last):
File "Bank FAQbot.py", line 158, in
chat()
File "Bank FAQbot.py", line 113, in chat
class_ = le.inverse_transform(model.predict(t_usr)[0])
File "C:\Users\M1042421\AppData\Local\Programs\Python\Python37\lib\site-packages\sklearn\preprocessing\label.py", line 273, in inverse_transform
y = column_or_1d(y, warn=True)
File "C:\Users\M1042421\AppData\Local\Programs\Python\Python37\lib\site-packages\sklearn\utils\validation.py", line 760, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
ValueError: bad input shape ()
Bot: Hi, Welcome to our bank!
You: What are the documents required for opening a Current Account of a sole proprietorship firm
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'question'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/adnan/PycharmProjects/untitled/banking-faq-bot-master/Bank FAQbot.py", line 152, in
chat()
File "/Users/adnan/PycharmProjects/untitled/banking-faq-bot-master/Bank FAQbot.py", line 115, in chat
for question in questionset['question']:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/frame.py", line 2800, in getitem
indexer = self.columns.get_loc(key)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 2648, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'question'
Process finished with exit code 1
#this issue iam not able to resolve in your code
Traceback (most recent call last):
File "C:\Users\muthupandy\AppData\Local\Programs\Python\Python35\myi.py", line 67, in
class_ = le.inverse_transform(model.predict(t_usr)[0])
File "C:\Users\muthupandy\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\preprocessing\label.py", line 273, in inverse_transform
y = column_or_1d(y, warn=True)
File "C:\Users\muthupandy\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\validation.py", line 797, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
ValueError: bad input shape ()
please help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.