"code" argument must be single file (expect for "package")? #10694
-
I'm trying to include custom components that I have defined in multiple files and include them with the "code" command line argument. Problem is only "package" accepts a comma separated list of files. The rest only accept 1 file ("train", "pretrain", "evaluate" and "assemble"). Does anyone know if there is a particular reason for that? I really don't want to put all my components into one monolithic file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, The Healthsea spaCy project is a good example for that: |
Beta Was this translation helpful? Give feedback.
Hello,
For these commands (
train
,pretrain
,evaluate
, andassemble
) you'll only need one.py
file which just imports the custom code. For thepackage
command however, you need to include every custom code file to the CLI.The Healthsea spaCy project is a good example for that: