jina.executors.segmenters

class jina.executors.segmenters.BaseSegmenter(*args, **kwargs)[source]

Bases: jina.executors.BaseExecutor

BaseSegmenter works on doc-level, it chunks Documents into set of Chunks :param args: Variable length arguments :param kwargs: Variable length keyword arguments

segment(*args, **kwargs)[source]
Parameters
  • args – Variable length arguments

  • kwargs – Variable length keyword arguments

Return type

Union[List[List[Dict]], List[Dict]]