sentencetoken

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sentencetoken splits text into sentences using the Punkt algorithm.

Ported from gopkg.in/neurosnap/sentences.v1 (MIT, Copyright 2015 Eric Bower) and github.com/jdkato/prose/v2 (MIT, Copyright 2017-2018 Joseph Kato). Only the English sentence tokenizer is retained; NER, POS tagging, and all interfaces have been removed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitSentences

func SplitSentences(text string) []string

SplitSentences splits text into sentences using the Punkt algorithm with an English language model. Returns at least one element.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL