segment-any-text / wtpsplit

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

JS Usage example & Node.js support #15

Closed doublex closed 4 years ago

doublex commented 4 years ago

Would it be possible to add a simple "usage" for node.js?

bminixhofer commented 4 years ago

Hi, sure. Javascript support is somewhat experimental and tractjs (the JS backend for NNs) has only recently got support for Node.js. I only tested NNSplit in the browser so far and it was less important to me because I didn't need it personally and heard from no one that did.

But I can definitely add a usage example for JS and see where we stand for Node.js support - I'll get back to you.

bminixhofer commented 4 years ago

Hi, I'd like to keep this open to track Node.js support and remind me of adding a usage example :)

doublex commented 4 years ago

Great news!

bminixhofer commented 4 years ago

I just added Node.js support. Starting from 0.4.10 NNSplit is built and tested for Node.js and there's a simple usage example in the README.