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

Error when load model #49

Closed ziweiji closed 2 years ago

ziweiji commented 3 years ago

When I run this command: splitter = NNSplit.load('en') This error occured:

thread '<unnamed>' panicked at 'Once instance has previously been poisoned', library/std/src/sync/once.rs:394:21
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pyo3_runtime.PanicException: Once instance has previously been poisoned
bminixhofer commented 3 years ago

Hi, thanks for reporting this.

Which OS, Python version and nnsplit version do you use?

bminixhofer commented 2 years ago

Closing this as stale.