jina.drivers.segment

class jina.drivers.segment.SegmentDriver(executor=None, method='segment', traversal_paths=('r', ), *args, **kwargs)[source]

Bases: jina.drivers.BaseExecutableDriver

Drivers inherited from this Driver will bind segment() by default

Initialize a BaseExecutableDriver

Parameters
  • executor (Optional[str]) – the name of the sub-executor, only necessary when jina.executors.compound.CompoundExecutor is used

  • method (str) – the function name of the executor that the driver feeds to

static update(doc, ret)[source]