# 麻烦 Google AI 多写情诗，程序员找女朋友指日可待

- 作者：殷悦
- 发布时间：2016-05-19 19:48
- 分类：新创
- 原文：https://www.ifanr.com/658915

![p2181491578 (1)](https://s3.ifanr.com/wp-content/uploads/2016/05/p2181491578-1.png)

读了上千本爱情小说的不仅有期待爱情的萌妹子，还有想学写诗的 Google 人工智能。

没有品味，审美奇葩，不懂浪漫，这是大家对程序员的固有印象。

![WeChat&#95;1463653870](https://s3.ifanr.com/wp-content/uploads/2016/05/WeChat_1463653870-1.jpeg)

你说程序员不会写诗撩妹，Google AI 会就行。

走出地铁第一步，也是拯救程序员的第一步。

从写诗开始。

> he was silent for a long moment.  
> he was silent for a moment.  
> it was quiet for a moment.  
> it was dark and cold.  
> there was a pause.  
> it was my turn.
> 
> 沉寂于熙  
> 冷冷清清  
> 瞬息与世  
> 唯有我尔
> 
> （这首有点表达道家哲理的世界爱情观。）

Google 与斯坦福大学正在研究人工智能的自然语言学习技术。主要针对机器翻译和图片抓取任务新建了一个惯用神经网络语言模型 （recurrent neural network language model RNNLM）。想要腹有诗书气自华，怎么的也得把各大名家大作拜读一遍吧。这个模型就是教会 AI 如何读书破万卷，情诗张口来。

![jxNRE33GShs](https://s3.ifanr.com/wp-content/uploads/2016/05/jxNRE33GShs.jpg)

但目前， RNNLM 还不能就指定主题写出一系列句子，用算法写出了一句话，也不一定顺利地写出下一句。康奈尔大学发表的一篇学术论文就展示了他们的最新成果：使用自变编码（variational autoencoder）避免 AI 犯错。

但是无论怎么样，即使程序员们不会写诗，把这么文艺化和创造性的事儿交给 AI 来写，看起来也挺有意思的。

以下几首诗就是 AI 写出来的，这些诗收录在“[我从几千本爱情小说中学到了什么](https://www.buzzfeed.com/alexkantrowitz/googles-artificial-intelligence-engine-reads-romance-novels)” 中，AI 研究者所限定的主题是“相对浪漫”：

> it was the only way.  
> it was her turn to blink.  
> it was hard to tell.  
> it was time to move on.  
> he had to do it again.  
> they all looked at each other.  
> they all turned to look back.  
> they both turned to face him.  
> they both turned and walked away.
> 
> 这是条唯一的路  
> 她有点闪烁其词  
> 难以言说的秘密  
> 是不是进退两难  
> 面面相对，很难  
> 都转过身来看  
> 都朝向他  
> 我们转身走开
> 
> （这本是玛丽苏？）

AI 写出来的句子从语法来说通顺，整体结构也都能与主题保持契合，虽然没有那么诗情画意，但是仔细看看也有点呆萌和小哲理不是吗？

> “no,” he said.  
> “no,” i said.  
> “i know,” she said.  
> “thank you,” she said.  
> “come with me,” she said.  
> “talk to me,” she said.  
> “don’t worry about it,” she said.
> 
> “不，”他说。  
> “不，”我说。  
> “我知道，”她说。  
> “谢谢你，”她说。  
> “跟我来，”她说。  
> “跟我说话，”她说。  
> “别担心，”她说。
> 
> （好像感受到 AI 应该读了一本霸气御姐范儿的爱情小说。）

![boy-couple-girl-love-relation-Favim.com-283420](https://s3.ifanr.com/wp-content/uploads/2016/05/boy-couple-girl-love-relation-Favim.com-283420.jpg)

> i don’t like it, he said.  
> i waited for what had happened.  
> it was almost thirty years ago.  
> it was over thirty years ago.  
> that was six years ago.  
> he had died two years ago.  
> ten, thirty years ago.  
> “it’s all right here.  
> “everything is all right here.  
> “it’s all right here.  
> it’s all right here.  
> we are all right here.  
> come here in five minutes.
> 
> 我不喜欢它，他说。  
> 我等待着。  
> 它几乎是三十年前。  
> 这大抵是三十年前。  
> 那是六年前。  
> 他曾在两年前去世了。  
> 十年还是三十年前。  
> 这一切都在这里。  
> 此刻的所有。  
> 这一切都在这里。  
> 我们都在这里。  
> 来到这里的五分钟。
> 
> （是不是有一部爱情电影叫“被偷走的那五年”？难道 AI 也看了这部电影？）

![5sy006](https://s3.ifanr.com/wp-content/uploads/2016/05/5sy006.jpg)

看到这些诗，是不是感受到了 Google AI 的有趣进步？机器已经可以把有意义的句子集中在一起了变成小诗了，这就意味着以后更加人性化的与 AI 聊天机器人沟通，在线交流撩妹技巧啦~(≧▽≦)/~

不愿意透露姓名的爱范儿 Android 程序员表示，希望 Google AI 写诗只是 Google 关心程序员的第一步，后续还有 Google 推出《程序员穿衣指南》以及 Google 专业植发服务，为中关村地铁站以及更广大的程序员们带来福音。

![WeChat&#95;1463653393](https://s3.ifanr.com/wp-content/uploads/2016/05/WeChat_1463653393.jpeg)
