Posts

Showing posts with the label processing

Build a chatbot using deep learning

I always look forward to making natural language processing more intelligent without hardwired rules. I also like the condensed style of the video. Build a Chatbot - ML for Hackers #6 video by Sirajology http://www.wildml.com/2016/04/deep-learning-for-chatbots-part-1-introduction/

Elementwise processing 2.1 for common keys in Haskell

Here's a neat little utility function which I commonly find useful. ef2_1 :: (a -> a -> a) -> (a -> a -> Bool) -> [a] -> [a] -> [a] ef2_1 = ef0 [] where  ef0 zs f lt (x:xs) (y:ys) | lt x y = ef0 (x:zs) f lt xs (y:ys)  ef0 zs f lt (x:xs) (y:ys) | lt y x = ef0 (y:zs) f lt (x:xs) ys  ef0 zs f lt (x:xs) (y:ys) = ef0 (f x y:zs) f lt xs ys  ef0 zs _ _ xr yr = reverse $ xr ++ yr ++ zs main = print $ ef2_1 (\x _->x) (\(x,_) (y,_)->x<y) d1 d2 where  d1 = [(1,9), (3,8), (4,7), (5,6), (7,5)]  d2 = [(2,5), (4,4), (6,3)]