pyinstaller with spacy code example
Example: pyinstaller for spacy code
from PyInstaller.utils.hooks import collect_all
data = collect_all('spacy')
datas = data[0]
binaries = data[1]
hiddenimports = data[2]
data = collect_all('thinc')
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
data = collect_all('cymem')
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
data = collect_all('preshed')
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
data = collect_all('blis')
datas += data[0]
binaries += data[1]
hiddenimports += data[2]
hiddenimports += ['srsly.msgpack.util']
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files("en_core_web_sm")