Closed syeelou closed 1 year ago
When I load the mini model downloaded by huggingface (https://huggingface.co/benjamin/wtp-bert-mini), I could not load the file mixtures.skops, resulting in the parameter style being unable to be used during segmentation. Found through query code https://github.com/bminixhofer/wtpsplit/blob/main/wtpsplit/__init__.py#L48
The file names are inconsistent. Change the downloaded file name from mixtures.skops to mixture.skops and you can load it successfully. I hope to modify the code or modify the file name in hf
Hi, thanks, good catch! I guess this also happened in #108. It's fixed in version 1.2.4 via https://github.com/bminixhofer/wtpsplit/commit/41821e00dd7d2a990b82426ef90c52609edc818a.
When I load the mini model downloaded by huggingface (https://huggingface.co/benjamin/wtp-bert-mini), I could not load the file mixtures.skops, resulting in the parameter style being unable to be used during segmentation. Found through query code https://github.com/bminixhofer/wtpsplit/blob/main/wtpsplit/__init__.py#L48
The file names are inconsistent. Change the downloaded file name from mixtures.skops to mixture.skops and you can load it successfully. I hope to modify the code or modify the file name in hf