Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

This toolkit element passes the document text to an external (or embedded) extraction engine to return entities and associations (and optionally metadata).

TODO

Most feature extractors require for text to have been extracted with a "textEngine" or "text" object before it in the pipeline, unless the data comes from file (which automatically fills in a document's "fullText" field). AlchemyAPI is an exception for URLs because it can do both steps. Other custom extractors may not require text, eg because they operate on existing metadata fields, or entities etc.

Format

TODO convert to JSON

{
	"display": string,
	"featureEngine": {} // see AutomatedEntityExtractionSpecPojo below
}
//////////////////////////////////
 
	public static class AutomatedEntityExtractionSpecPojo {
		public String criteria; // A javascript expression that is passed the document as _doc - if returns false then this pipeline element is bypassed
		public String engineName; // The name of the text engine to use (can be fully qualified (eg "com.ikanow.infinit.e.harvest.boilerpipe"), or just the name (eg "boilerpipe") if the engine is registered in the Infinit.e system configuration)
		public LinkedHashMap<String, String> engineConfig; // The configuration object to be passed to the engine
		public String entityFilter; // (regex applied to entity indexes, starts with "+" or "-" to indicate inclusion/exclusion, defaults to include-only)
		public String assocFilter; // (regex applied to new-line separated association indexes, starts with "+" or "-" to indicate inclusion/exclusion, defaults to include-only) 
	}

Legacy documentation:

  • Replaces "useExtractor" in the Source object
  • (Note "criteria" above is not currently supported - coming soon!)

TODO

Description

Legacy documentation:

TODO

Examples

TODO

  • No labels