snipsco / snips-nlu-rs

Snips NLU rust implementation
https://snips.ai
Other
340 stars 56 forks source link

Fix issue when loading engine from zip data #64

Closed adrienball closed 6 years ago

adrienball commented 6 years ago

Description The from_zip function of SnipsNLUEngine was making the assumption that the first file of the archive was the base directory of the archive. It is safer not to make this assumption, and retrieve the base directory name by taking the first component of a file in the archive.