Pages

Sunday, 2 February 2014

基于ruby的一个人工智能程序-girlfriend(有点意思)

gem install girlfriend
 
girlfriend --ability interactive (互动模式) 
girlfriend --ability finger (“调戏”模式)
  
girlfriend --ability talk --input 'hi'  (交谈模式)
 
我的测试:
as3:~# girlfriend --ability talk --input 'Hey, Ruby :)'
I am not sure I understand you fully
as3:~# girlfriend --ability talk --input 'Hey'
Very interesting
as3:~# girlfriend --ability talk --input 'hi'
Please continue
as3:~# girlfriend --ability finger
I am Ruby, a 21 years old girl from New York currently attending Florida State University.

When not studying, I love gaming, cooking, photography, blogging and talking to dudes just like YOU.
as3:~#
as3:~# girlfriend --ability interactive
Say hi to Ruby now or type `leave` to stop talking to her!
Dude > hi
Ruby > Please continue
Dude > hi
Ruby > What does that suggest to you?
Dude > anything
Ruby > Very interesting
Dude > how old are u?
Ruby > Did you think they might not be u??
Dude > where is USA?
Ruby > What does that suggest to you?