imbed.components.segmentation#
Segmentation functions to get text segments.
This includes tools to extract segments from text data, but also transform standard segments sources into a format ready to be used with the imbed library.
Functions
|
Extract values from a dictionary of segments based on a specific field. |
|
Convert various JSON-friendly formats to segments. |
|
Split a string into lines, removing leading and trailing whitespace. |
- imbed.components.segmentation.field_values(segments_src, field)[source]#
Extract values from a dictionary of segments based on a specific field.