public class BasicInformationExtractionFinisher extends Object implements InformationExtractionFinisher
Modifier and Type | Field and Description |
---|---|
static String |
CRLF
Platform independent newline String.
|
static String |
INDENT
Amount to indent when depicting layered information.
|
Constructor and Description |
---|
BasicInformationExtractionFinisher()
Default constructor for an BasicInformationExtractionFinisher.
|
Modifier and Type | Method and Description |
---|---|
void |
applyOverrideSettings()
Apply the override settings.
|
protected void |
createGraphSummaryDocument()
Create the graph summary document JSON document that reflects all
markings and marking relations in the solved outcome.
|
protected void |
createLegalImplicitRelationsDocument()
Create the Legal Implicit Relation document that shows all of the possible
relations that could be generated if the ImplicitRelations defined
on the DomainSpecifcation were used.
|
protected void |
createTextSummaryDocument()
Create the text summary document that contains excerpts of the
tokens document, identified during the earlier phases.
|
protected void |
createTrainingTemplateDocument()
Create the Training template document that can be used to set
a confirmed outcome.
|
protected void |
createXmlMarkingDocument()
Create the XML marking document that represents the markings
in the unconfirmed outcome.
|
protected void |
createXmlRelationDocument()
Create the XML Relation document that represents the marking relations
in the unconfirmed outcome.
|
protected AccessControlList |
determineGraphSummaryDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the Graph summary document.
|
protected String |
determineGraphSummaryDocumentName(InformationExtraction ext)
Determine the Name to use for the Graph summary document.
|
protected Folder |
determineGraphSummaryDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the Graph summary document.
|
protected String |
determineGraphSummaryJsonContent(InformationExtraction ext)
Determine the contents to use for the Graph summary document.
|
protected String |
determineSummaryText(InformationExtraction ext)
Determine the contents to use for the Text summary document.
|
protected AccessControlList |
determineTextSummaryDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the Text summary document.
|
protected String |
determineTextSummaryDocumentName(InformationExtraction ext)
Determine the Name to use for the Text summary document.
|
protected Folder |
determineTextSummaryDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the Text summary document.
|
protected String |
determineTrainingTemplateContent(InformationExtraction ext)
Determine the contents to use for the training template document.
|
protected AccessControlList |
determineTrainingTemplateDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the Training Template document.
|
protected String |
determineTrainingTemplateDocumentName(InformationExtraction ext)
Determine the Name to use for the Training Template document.
|
protected Folder |
determineTrainingTemplateDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the Training Template document.
|
protected String |
determineXmlMarkingContent(InformationExtraction ext)
Determine the contents to use for the XML Marking document.
|
protected AccessControlList |
determineXmlMarkingDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the XML Marking document.
|
protected String |
determineXmlMarkingDocumentName(InformationExtraction ext)
Determine the Name to use for the XML Marking document.
|
protected Folder |
determineXmlMarkingDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the XML Marking document.
|
protected String |
determineXmlRelationContent(InformationExtraction ext)
Determine the contents to use for the XML Relation document.
|
protected AccessControlList |
determineXmlRelationDocumentAcl(InformationExtraction ext)
Determine the ACL to use for the XML Relation document.
|
protected String |
determineXmlRelationDocumentName(InformationExtraction ext)
Determine the Name to use for the XML Relation document.
|
protected Folder |
determineXmlRelationDocumentParentFolder(InformationExtraction ext)
Determine the parent Folder to use for the XML Relation document.
|
void |
finish(InformationExtraction ext)
Finish a solved InformationExtractionOutcome, producing additional
finisher results.
|
InformationExtraction |
getInformationExtraction()
Gets the InformationExtraction being processed.
|
AttributeValueTable |
getSettings()
Gets the effective settings for the current finish.
|
void |
initialize(InformationExtractionFinisherSpecification spec)
Initialize this instance.
|
protected void |
setInformationExtraction(InformationExtraction ext)
Sets the InformationExtraction being processed.
|
public static final String CRLF
public static final String INDENT
public BasicInformationExtractionFinisher()
public void initialize(InformationExtractionFinisherSpecification spec) throws IfsException
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be subsequently used concurrently by multiple threads and sessions. A session can be retrieved from the specification object, but it must not be cached. The specification also has the implementation and instance specific parameters which should be cached in a session independent way.
initialize
in interface InformationExtractionFinisher
spec
- The specification for a given implementation.IfsException
- if the operation fails.public AttributeValueTable getSettings()
public InformationExtraction getInformationExtraction()
protected void setInformationExtraction(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being processedIfsException
- if the operation failspublic void applyOverrideSettings() throws IfsException
IfsException
- if the operation failspublic void finish(InformationExtraction ext) throws IfsException
finish
in interface InformationExtractionFinisher
ext
- the target InformationExtractionIfsException
- if the operation failsprotected void createTextSummaryDocument() throws IfsException
IfsException
- if the operation failsprotected String determineSummaryText(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineTextSummaryDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineTextSummaryDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineTextSummaryDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected void createGraphSummaryDocument() throws IfsException
IfsException
- if the operation failsprotected String determineGraphSummaryJsonContent(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineGraphSummaryDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineGraphSummaryDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineGraphSummaryDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected void createXmlMarkingDocument() throws IfsException
IfsException
- if the operation failsprotected String determineXmlMarkingContent(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineXmlMarkingDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineXmlMarkingDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineXmlMarkingDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected void createXmlRelationDocument() throws IfsException
IfsException
- if the operation failsprotected String determineXmlRelationContent(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineXmlRelationDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineXmlRelationDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineXmlRelationDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected void createTrainingTemplateDocument() throws IfsException
IfsException
- if the operation failsprotected String determineTrainingTemplateContent(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected String determineTrainingTemplateDocumentName(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected AccessControlList determineTrainingTemplateDocumentAcl(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected Folder determineTrainingTemplateDocumentParentFolder(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction being preparedIfsException
- if the operation failsprotected void createLegalImplicitRelationsDocument() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.