I recently came across a very cool scripting language; Rivescript, which can be used in chatbots or other conversational entities. It’s a plain text keeps simple replies simple; for example:
This will add a reply so that when a human says the words “Hello bot”, the bot would respond with “Hello, human!”
With more advanced RiveScript code we can learn and repeat user variables and use more complicated trigger matching patterns:
This looks like AIML (Artificial Intelligence Markup Language), doesn’t it?
I incorporated ml5js libraries for the machine Learning portion of the code. ml5.js is machine learning for the web in your web browser. Through some clever and exciting advancements, the folks building TensorFlow.js figured out that it is possible to use the web browser’s built in graphics processing unit (GPU) to do calculations that would otherwise run very slowly using central processing unit (CPU).
PoseNet is a machine learning model that allows for Real-time Human Pose Estimation.
PoseNet can be used to estimate either a single pose or multiple poses, meaning there is a version of the algorithm that can detect only one person in an image/video and one version that can detect multiple persons in an image/video.