chat service • Simple installation and setup • Easily extendable with plugins • Data persistence with Redis • Built-in web server and routing • Event system for behavior triggered in response to arbitrary events • Support for outgoing HTTP requests • Group-based authorization • Internationalization • Configurable logging • Generators for creating new plugins
to one or more classes or categories making it easier to manage or sort. require 'stuff-classifier' cls = StuffClassifier::TfIdf.new("Cats or Dogs") cls.ignore_words = [ 'the', 'my', 'i', 'dont' ] cls.train(:dog, "Dogs are awesome, cats too. I love my dog") cls.train(:cat, "Cats are more preferred by software developers. I never could stand cats. I have a dog") cls.train(:dog, "My dog's name is Willy. He likes to play with my wife's cat all day long. I love dogs") cls.train(:cat, "Cats are difficult animals, unlike dogs, really annoying, I hate them all") cls.train(:dog, "So which one should you choose? A dog, definitely.") cls.train(:cat, "The favorite food for cats is bird meat, although mice are good, but birds are a delicacy") cls.train(:dog, "A dog will eat anything, including birds or whatever meat") cls.train(:cat, "My cat's favorite place to purr is on my keyboard") cls.train(:dog, "My dog's favorite place to take a leak is the tree in front of our house") cls.classify("This test is about cats.") #=> :cat
(https://github.com/tachyons/luis) • Ruby version of microsoft's bot framework (https://github.com/tachyons/botframework-ruby) • Built a simple prototype using sinatra https://github.com/tachyons/stock-bot-ruby/blob/master/stock.rb
Event driven ? BotFramework.configure do |connector| connector.app_id = ENV['MICROSOFT_APP_ID'] connector.app_secret = ENV['MICROSOFT_APP_SECRET'] End BotFramework::Bot.on :activity do |activity| # Activity.id , identifier of the activity # activity.timestamp # activity.channel_id # activity.from, sender # activity.conversation # and so on reply(activity,activity.text) end