segment: Add support for segmenting "snippets".