I have been working on a chat bot. I have used nltk.chat
quite extensively for my bot. But I want to add more features to the pairs other than the default one. when i try to add new pair i'm, getting a error.
alex=Chat(pair,reflections)
File "/usr/local/lib/python2.7/dist-packages/nltk/chat/util.py", in __init__
self._pairs = [(re.compile(x, re.IGNORECASE),y) for (x,y) in pairs]
ValueError: too many values to unpack
my code:
pair=(
(r'test (.*)',('a','b'))
)