Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear ru...
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input w...
Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one...
Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial w...
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: T...
原文链接 关于Python语言的最常见的抱怨之一是变量是动态类型化的。这意味着您声明变量而不给出特定的数据类型。根据传递的数据自动分配类型: president_name = "Franklin Delano Roosevelt" print(type(president...
Rasa NLU简介 Rasa NLU(自然语言理解)是意图分类和实体提取的工具。 您可以将Rasa NLU视为一组高级API,用于使用现有的NLP和ML库构建自己的语言解析器。 安装 我的系统是OS X,python 的版本是3.6.1 安装pip install ra...
前言 虽说标题取的是40行写一个微信自动回复机器人,但是实际上肯定要比40行多,这只是一个最终的代码行数而已。另外要说的是,这个机器人非第三方接口。时间的话,用了周六、周日两天的时间,主要用来上传语料数据。中文语料总共有50w,还有英文语料。 效果预览 可以点击聊天机器人...
前言 在2017年6月5日参加了微软在上海举行的BuildTour,我的关注点主要在微软AI上面的发展,比如,一些开发工具,bot的设计等。当然,比较有兴趣的是微软的增强现实Hololens。相关的演讲Keynote在buildtour keynote BuildTour现场...
前言 随着网站里面的数据越来越多,并且网站有时候成绩的上传并不是结构化的数据,所以现在准备把网站升级成为真正的搜索。于是准备使用Elasticsearch+scarpy+django升级网站服务。 Elasticsearch安装 Elasticsearch安装对我来说主要考虑...