4 ms·
Wow, this is pretty cool! Could you give a few more examples to get a feel for what kind of results you get (and inputs you can give)?
by tych0 14y ago
Wow, this is pretty cool! Could you give a few more examples to get a feel for what kind of results you get (and inputs you can give)?
- apetresc 14y agoTake a look at our ruby specs: https://github.com/Maluuba/napi-ruby/blob/master/maluuba_napi/spec/maluuba-napi/interpret_spec.rb https://github.com/Maluuba/napi-ruby/blob/master/maluuba_nap... There's nearly a hundred sample sentences and expected outputs -- and they all pass :)
- drewch 14y agoIf you prefer other languages, we also got: Python: https://github.com/Maluuba/napi-python/blob/master/tests/test_client.py https://github.com/Maluuba/napi-python/blob/master/tests/tes... Java: https://github.com/Maluuba/napi-java/blob/master/src/test/java/com/maluuba/napi/client/MaluubaNAPIClientTest.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 }
- tych0 14y agoCool, thank you very much!