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.
Description The
from_zip
function ofSnipsNLUEngine
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.