sentence-splitter / README.md
vinitgore's picture
Upload 3 files
b255dcc verified
|
raw
history blame
1.71 kB
metadata
license: mit
language:
  - en
tags:
  - lstm
  - text-segmentation

Check this NPM package (built for Speech-To-Text usecase) implements the setup and inference for this model. It provides a React app demo and a processDirectText method to try direct inference on text.

The sentence splitter model is an LSTM model with around 500 B input size taken from the repository: NNSplit

NNSplit Spacy (Tagger) Spacy (Sentencizer)
Clean 0.754371 0.853603 0.820934
Partial punctuation 0.485907 0.517829 0.249753
Partial case 0.761754 0.825119 0.819679
Partial punctuation and case 0.443704 0.458619 0.249873
No punctuation and case 0.166273 0.180859 0.00463281

Example

No punctuation and no cases (~17% accuracy)
Input:

the difference between rest and graphql is explained as follows 
rest is an architectural style that exposes resources via endpoints typically following crud operations each endpoint returns a fixed data structure graphql on the other hand allows clients to specify exactly what data they need in a single query often reducing overfetching and underfetching issues

Result: 28.90ms ✅ image