26 points · by apetresc · 14y ago · 17 comments
Sorry for the inconvenience!
What happens when you encounter phrases with multiple intents? Is it something you can detect but is difficult to deal with, or is it a best-guess kind of thing where you attempt to obey the "first intent"? Or something else?
Python: https://github.com/Maluuba/napi-python/blob/master/tests/tes...
Java: https://github.com/Maluuba/napi-java/blob/master/src/test/ja...
Here is an example of a sentence and response:
>> client.interpret phrase: 'Set up a meeting with Bob tomorrow night at 7 PM to discuss the TPS reports'
response:
{:entities=> { :daterange=> [{ :start=>"2012-11-15", :end=>"2012-11-16" }], :title=> ["meeting to discuss the tps reports"], :timerange=> [{ :start=>"12:00:00AM", :end=>"12:00:00AM" }], :contacts=>[{ :name=>"bob" }] }, :action=>:CALENDAR_CREATE_EVENT, :category=>:CALENDAR }