public class InformationExtractionToken extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
AFTERANNOTATION_ATTRIBUTE
The name of the Attribute representing
The AfterAnnotation.
|
static String |
BEFOREANNOTATION_ATTRIBUTE
The name of the Attribute representing
The BeforeAnnotation.
|
static String |
CHAROFFSETBEGINANNOTATION_ATTRIBUTE
The name of the Attribute representing
The CharOffsetBeginAnnotation.
|
static String |
CHAROFFSETENDANNOTATION_ATTRIBUTE
The name of the Attribute representing
The CharOffsetEndAnnotation.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
CUSTOMNAMEDENTITYMAP_ATTRIBUTE
The name of the Attribute representing
the custom generated Named Entity Recognition (NER) entries,
keyed by NER tag, with a value indicating priority in millipercent (0 - 100000).
|
static String |
INFORMATIONEXTRACTION_ATTRIBUTE
The name of the Attribute representing
The InformationExtraction in which this token was defined.
|
static String |
LEMMA_ATTRIBUTE
The name of the Attribute representing
The lemma/stemmed token.
|
static String |
NAMEDENTITY_ATTRIBUTE
The name of the Attribute representing
The Named Entity Recognition (NER) entry for the token.
|
static String |
ORIGINALTEXT_ATTRIBUTE
The name of the Attribute representing
The original text.
|
static String |
PARTOFSPEECH_ATTRIBUTE
The name of the Attribute representing
The part of speech for the token.
|
static String |
PARTOFSPEECH_PUNCT
Part-of-speech indicating punctuation.
|
static String |
POSITION_ATTRIBUTE
The name of the Attribute representing
The position of this token in the token list (zero based).
|
static String |
SENTENCE_ATTRIBUTE
The name of the Attribute representing
the Sentence of current token.
|
static String |
WORD_ATTRIBUTE
The name of the Attribute representing
The literal token.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, NAME_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
Constructor and Description |
---|
InformationExtractionToken(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a InformationExtractionToken object.
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomNamedEntity(String tag,
int priority)
Gets the the custom generated Named Entity Recognition (NER) entries,
keyed by NER tag, with a value indicating priority
in millipercent (0 - 100000).
|
String |
getAfterAnnotation()
Gets the AfterAnnotation.
|
String |
getBeforeAnnotation()
Gets the BeforeAnnotation.
|
int |
getCharOffsetBeginAnnotation()
Gets the character offset for BeginAnnotation
|
int |
getCharOffsetEndAnnotation()
Gets the character offset for EndAnnotation
|
Map |
getCustomNamedEntityMap()
Gets the the custom generated Named Entity Recognition (NER) entries,
keyed by NER tag, with a value indicating priority
in millipercent (0 - 100000).
|
InformationExtraction |
getInformationExtraction()
Gets The InformationExtraction in which this token was defined.
|
String |
getLemma()
Gets The lemma/stemmed token.
|
String |
getNamedEntity()
Gets The Named Entity Recognition (NER) entry for the token.
|
String |
getOriginalText()
Gets the original text.
|
String |
getPartOfSpeech()
Gets The part of speech for the token.
|
int |
getPosition()
Gets the position of this token in the token list.
|
InformationExtractionSentence |
getSentence()
Getter for Sentence.
|
int |
getSentenceNumber()
Gets the sentence number (zero based) in which this token appears.
|
String |
getWord()
Gets The literal token.
|
boolean |
isApostrophe()
Return true if the Token is a possessive apostrophe.
|
boolean |
isNoun()
Return true if the Token is a noun.
|
boolean |
isVerb()
Return true if the Token is a verb.
|
void |
setSentence(InformationExtractionSentence val)
Sets sentence this token belongs to.
|
String |
toString()
Returns the Name of this object, or null of the
object does not have a NAME attribute.
|
static String |
toString(InformationExtractionToken[] tokens)
Convert the specified token array to a String.
|
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, postCreate, postEvent, postEvent, postFree, postUpdate, preCreate, preFree, 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, 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 WORD_ATTRIBUTE
public static final String LEMMA_ATTRIBUTE
public static final String PARTOFSPEECH_ATTRIBUTE
public static final String NAMEDENTITY_ATTRIBUTE
public static final String CUSTOMNAMEDENTITYMAP_ATTRIBUTE
public static final String POSITION_ATTRIBUTE
public static final String ORIGINALTEXT_ATTRIBUTE
public static final String BEFOREANNOTATION_ATTRIBUTE
public static final String AFTERANNOTATION_ATTRIBUTE
public static final String CHAROFFSETBEGINANNOTATION_ATTRIBUTE
public static final String CHAROFFSETENDANNOTATION_ATTRIBUTE
public static final String SENTENCE_ATTRIBUTE
public static final String PARTOFSPEECH_PUNCT
public InformationExtractionToken(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 String getWord() throws IfsException
IfsException
- if the operation failspublic String getLemma() throws IfsException
IfsException
- if the operation failspublic String getPartOfSpeech() throws IfsException
IfsException
- if the operation failspublic String getNamedEntity() throws IfsException
IfsException
- if the operation failspublic Map getCustomNamedEntityMap() throws IfsException
IfsException
- if the operation failspublic int getPosition() throws IfsException
IfsException
- if the operation failspublic String getOriginalText() throws IfsException
IfsException
- if the operation failspublic String getBeforeAnnotation() throws IfsException
IfsException
- if the operation failspublic String getAfterAnnotation() throws IfsException
IfsException
- if the operation failspublic int getCharOffsetBeginAnnotation() throws IfsException
IfsException
- if the operation failspublic int getCharOffsetEndAnnotation() throws IfsException
IfsException
- if the operation failspublic InformationExtractionSentence getSentence() throws IfsException
IfsException
- if the operation failspublic boolean isApostrophe() throws IfsException
IfsException
- if the operation failspublic boolean isVerb() throws IfsException
IfsException
- if the operation failspublic boolean isNoun() throws IfsException
IfsException
- if the operation failspublic int getSentenceNumber() throws IfsException
IfsException
- if the operation failspublic String toString()
LibraryObject
toString
in class LibraryObject
public static String toString(InformationExtractionToken[] tokens)
tokens
- the token setpublic void addCustomNamedEntity(String tag, int priority) throws IfsException
IfsException
- if the operation failspublic void setSentence(InformationExtractionSentence val) throws IfsException
val
- the new valueIfsException
- if the operation failsCopyright © 2023. All rights reserved.