-
Notifications
You must be signed in to change notification settings - Fork 25
Adding your own analysis modules
Andy Jackson edited this page May 5, 2022
·
2 revisions
The core warc-indexer
package supports a java.util.ServiceLoader
plug-in mechanism for plugins and extensions:
- Sub-classes of AbstractPayloadAnalyser can analyze the binary payload.
- Subclasses of AbstractTextAnalyser can analyze the extracted text.
Any declared implementations are executed at runtime if they are on the classpath. Here's how the payload analysis works
An example is at this file which declares a module that does face detection. You need to add the jar to your run-time classpath, but then it should get picked up.