public class InformationExtractionSentence extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
ENTITYMENTIONS_ATTRIBUTE
The name of the Attribute representing
The entity mentions produced from the NLP analysis.
|
static String |
INFORMATIONEXTRACTION_ATTRIBUTE
The name of the Attribute representing
The InformationExtraction in which this sentence was defined.
|
static String |
POSITION_ATTRIBUTE
The name of the Attribute representing
The position of this sentence in the sentence list (zero based).
|
static String |
RELATIONMENTIONS_ATTRIBUTE
The name of the Attribute representing
The relation mentions produced from the NLP analysis.
|
static String |
RELATIONTRIPLES_ATTRIBUTE
The name of the Attribute representing
The Relation Triples produced from the NLP analysis.
|
static String |
ROOTEDGES_ATTRIBUTE
The name of the Attribute representing
the root edges of the dependency graph for this sentence.
|
static String |
SENTENCETEXT_ATTRIBUTE
The name of the Attribute representing
The literal sentence text.
|
static String |
TOKENLIST_ATTRIBUTE
The name of the Attribute representing
The token list comprising the set of tokens for the sentence.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, NAME_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
Constructor and Description |
---|
InformationExtractionSentence(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a InformationExtractionSentence object.
|
Modifier and Type | Method and Description |
---|---|
InformationExtractionEntityMention[] |
getEntityMentions()
Gets the entity mentions produced from the NLP analysis.
|
InformationExtraction |
getInformationExtraction()
Gets the InformationExtraction in which this sentence was defined.
|
int |
getPosition()
Gets the position of this sentence in the sentence list (zero based).
|
InformationExtractionRelationMention[] |
getRelationMentions()
Gets the relation mentions produced from the NLP analysis.
|
InformationExtractionRelationTriple[] |
getRelationTriples()
Gets the Relation Triples produced from the NLP analysis.
|
InformationExtractionDependencyGraphEdge[] |
getRootEdges()
Gets the root edges of the dependency graph for this sentence.
|
String |
getSentenceText()
Gets the literal sentence text.
|
InformationExtractionTokenList |
getTokenList()
Gets the token list comprising the set of tokens for the sentence.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a object.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
free, handleCreate, isValidEventType
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, hasNameAttribute, hasPropertyBundleAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, postUpdate, preCreate, prePostAuditEvent, preUpdate, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String INFORMATIONEXTRACTION_ATTRIBUTE
public static final String TOKENLIST_ATTRIBUTE
public static final String SENTENCETEXT_ATTRIBUTE
public static final String ENTITYMENTIONS_ATTRIBUTE
public static final String RELATIONMENTIONS_ATTRIBUTE
public static final String RELATIONTRIPLES_ATTRIBUTE
public static final String ROOTEDGES_ATTRIBUTE
public static final String POSITION_ATTRIBUTE
public InformationExtractionSentence(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic InformationExtraction getInformationExtraction() throws IfsException
IfsException
- if the operation failspublic InformationExtractionTokenList getTokenList() throws IfsException
IfsException
- if the operation failspublic String getSentenceText() throws IfsException
IfsException
- if the operation failspublic InformationExtractionEntityMention[] getEntityMentions() throws IfsException
IfsException
- if the operation failspublic InformationExtractionRelationMention[] getRelationMentions() throws IfsException
IfsException
- if the operation failspublic InformationExtractionRelationTriple[] getRelationTriples() throws IfsException
IfsException
- if the operation failspublic InformationExtractionDependencyGraphEdge[] getRootEdges() throws IfsException
IfsException
- if the operation failspublic int getPosition() throws IfsException
IfsException
- if the operation failsprotected void postCreate(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform operations after an object is created.
Subclasses are expected to invoke super.postCreate
.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2023. All rights reserved.