Package org.apache.tika.parser.inference
Interface InferenceTask
- All Known Implementing Classes:
EmbedTask
public interface InferenceTask
What a binding asks of its engine, named in the binding's
"tasks": one call per
unit for embed, all units in one call for a document-level task. The task owns
its output shape and writes it on each unit's destination, never on the target directly: outside the recursive wrapper the target's
metadata is discarded with the embedded document.-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(InferenceBinding binding, List<InferenceUnit> units, Engine engine, ParseContext context) default voidvalidate(InferenceBinding binding, Engine engine) Rejects an engine this task cannot use; called once at config load.
-
Method Details
-
validate
Rejects an engine this task cannot use; called once at config load.- Throws:
TikaConfigException
-
run
void run(InferenceBinding binding, List<InferenceUnit> units, Engine engine, ParseContext context) throws IOException, TikaException - Throws:
IOExceptionTikaException
-