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 defaultInitialize a
BaseExecutableDriver
- Parameters
executor (
Optional
[str
]) – the name of the sub-executor, only necessary whenjina.executors.compound.CompoundExecutor
is usedmethod (
str
) – the function name of the executor that the driver feeds to