O'Reilly logo

Hands-On Natural Language Processing with Python by Rajalingappaa Shanmugamani, Rajesh Arumugam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example of an interactive conversation

We can also run our trained chatbot in interactive mode to have a real-time conversation with it:

chatbot.interactive_mode()

We can interact with the chatbot by typing text whenever prompted by the ==> symbol:

==> good morninghello what can i help you with today==> i'd like to book a table for eighti'm on it==> any preference on a type of cuisine==> with italian cuisinewhere should it be==> in bombaywhich price range are looking for==> i am looking for a moderate restaurantok let me look into some options for you==> api_call italian bombay eight moderate==> instead could it be in a cheap price rangesure is there anything else to update==> actually i would prefer in london ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required