1ilI/MessageFilter

initialization of coreml model with model data failed

Opened this issue · 0 comments

Hi, I followed your steps, but I encountered a problem when running the extension app on my iPhone and had no solutions.
When I initialized the coreml model in an app project running on iPhone, it worked.
But when I initialized it in an extension app project running on the same iPhone, it always failed and the error info was that “Unable to locate Asset for contextual word embedding model” / “Failed to load dynamic embedding for language zh-Hans revision 1" / "[coreml] MLModelAsset: load failed with error Error Domain=com.apple.CoreML Code=0 “initialization of text classifier model with model data failed” UserInfo={NSLocalizedDescription=initialization of text classifier model with model data failed}."
I have already re-downloaded the assets on my iPhone, but the problem still existed.
Is there any advice to solve the problem? Thank you!