segment-any-text / wtpsplit

Toolkit to segment text into sentences or other semantic units in a robust, efficient and adaptable way.
MIT License
667 stars 39 forks source link

Can't run it on macOS #48

Closed TakamotoAI closed 2 years ago

TakamotoAI commented 3 years ago

I want to give the module a try, but I am getting the following error by running the basic example on the readme. Module was installed with pip.

splitter = NNSplit.load("en") AttributeError: type object 'NNSplit' has no attribute 'load'

bminixhofer commented 3 years ago

Hi, sorry for the late response.

Which Python version are you using? And can you do pip freeze | grep nnsplit to check the NNSplit version?

It seems like an old version might have been installed. You can try installing the correct wheel from here.

bminixhofer commented 2 years ago

Closing this as stale.