LoyVanBeek / wit_ros

Wrapper for the wit.ai natural language API
MIT License
10 stars 4 forks source link

Handled case where Wit.ai returns an array #1

Closed blandinw closed 11 years ago

blandinw commented 11 years ago

I'm very excited about the combination of ROS and Wit. So here's my first contribution to this journey!

If several entities of the same type are found, Wit.ai will use an array instead of an object in data.outcome.entities.myentity (cf. https://wit.ai/docs/api).

That patch should do the right thing! Thanks!