File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 99import Mykytea
1010
1111# Test 3: Run tokenization with model
12+ import os
13+
1214opt = "-deftag UNKNOWN!!"
1315if "--model" in sys .argv :
14- import os
1516 model_path = os .path .normpath (sys .argv [sys .argv .index ("--model" ) + 1 ])
17+ print (f"Model path: { model_path } " )
18+ print (f"File exists: { os .path .exists (model_path )} " )
19+ if os .path .exists (model_path ):
20+ print (f"File size: { os .path .getsize (model_path )} " )
21+ # List files in the directory to debug
22+ model_dir = os .path .dirname (model_path )
23+ print (f"Files matching model* in { model_dir } :" )
24+ for f in os .listdir (model_dir ):
25+ if f .startswith ("model" ):
26+ print (f" { f } ({ os .path .getsize (os .path .join (model_dir , f ))} )" )
1627 opt += f" -model { model_path } "
1728
1829mk = Mykytea .Mykytea (opt )
You can’t perform that action at this time.
0 commit comments