Open astaff opened 4 years ago
Those functions were created to process local files and we haven't tested them against the http request. Worth some investigation later. An alternative way is to use the download func or wget
.
We can clarify docstring then. Currently it says file_object (FileObject): a file like object to read data from.
which refers to https://docs.python.org/3/glossary.html#term-file-object.
🐛 Bug
To Reproduce
Gives
AttributeError: 'HTTPResponse' object has no attribute 'name'
Expected behavior
being able to
vocab_from_file
from a file-like objectHTTPResponse