segmenter

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package segmenter provides a way to split texts into sentences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Segment

func Segment(s string) []string

Segment breaks a text into sentences.

func SegmentWithLocations

func SegmentWithLocations(s string) ([]string, [][2]int)

SegmentWithLocations breaks a text into sentences. It also returns the locations of the sentences in the original string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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