Skip to content

Split long sentences into arrays of capped token length #11529

Answered by maziyarpanahi
jenghub asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jenghub

We have 2 sentence splitter annotators: SentenceDetector which is rule-based and SentenceDetectorDL which is a trainable and DL-based annotator. (SentenceDetectorModel for prediction)

Both of these annotators have a parameter called splitLength to split the sentence at that length into 2 or more sentences:

Hope this helps :)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jenghub
Comment options

@jenghub
Comment options

@maziyarpanahi
Comment options

Answer selected by jenghub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants