segment

Returns Segments object containing the segments of the input string, using the segmenter's locale and granularity.

Parameters

input
  • The text to be segmented as a string.