Closed hwang136 closed 2 weeks ago
Also, How can I load a local model using SaT it seems to only support huggingface connection
Hi! For the first issue related to importing, could you share your error message? I just tried again using a fresh install and it works just fine. Could you double-check your environment and installation? You can simply load a local model by providing a directory with model files. See this line here.
simply boosting the version solved this problem. regarding to 2nd question. I can provide a local model but not a local tokenizer whose path is hard coded so I create another segmenter class for this.
Great! I see, that is not a current feature, indeed. Out of curiosity, why would you need such a feature? :)
after
pip install wtpsplit
I tried tofrom wtpsplit import SaT
but it shows ImportError: cannot import name 'SaT' from 'wtpsplit' (/usr/local/lib/python3.10/site-packages/wtpsplit/init.py)