%iKnow.Configuration
deprecated persistent class %iKnow.Configuration extends %Library.Persistent [ Final ]
SQL Table Name: %iKnow.Configuration
The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentationOpens in a new tab for more detail.
This class groups the configuration parameters to drive the iKnow Smart Indexing algorithm as executed by the iKnow engine (external libraries). Configurations are referred to by name and can be used across domains within the same namespace.
When creating a configuration, you can pass initial values for the following properties to its %New() method:
- Name (required)
- DetectLanguage
- Languages
- UserDictionary
- Summarize
Property Inventory
Method Inventory
- %ConstructClone()
- %DeleteExtent()
- Create()
- Delete()
- DeleteId()
- Exists()
- Normalize()
- NormalizeWithParams()
- Open()
- OpenId()
Properties
Methods
Note that even if deep=0 when you clone a parent object in a parent child relationship or a one object of a one to many relationship then it will construct clones of all the child/many objects. This is because a child/many object can only point at a single parent and so if we did not create a clone of these then you would have a relationship with zero items in it. If you really just want to clone the object without these child/many objects then pass deep=-1 to this method.
After the clone is constructed it will call %OnConstructClone(object,deep,.cloned) on the clone if it is defined so that you can perform any additional steps e.g. taking out a lock. This works just the same way as %OnNew() does.
The object is the oref of the original object that was cloned. The cloned array is just used internally when doing a deep clone to prevent recursive loops, do not pass anything in at all for this parameter on the initial call. If you write a %OnConstructClone and from here you wish to call %ConstructClone on another object pass in the cloned array, e.g. 'Do oref.%ConstructClone(1,.cloned)' so that it can prevent recursive loops.
The location is used internally to pass the new location for stream objects.
Internally, %DeleteExtent() iterates over the set of instances in the
collection and invokes the %Delete() method. Returns a %Status value indicating success or failure.
Refer to Object Concurrency Options for more details
on the optional concurrency argument.
The option pInitializeExtent argument allows the user to override the default behavior
of calling %KillExtent() when all instances are successfully deleted. %KillExtent()
is called by default when the extent is empty so that empty globals can be killed. If %KillExtent()
is not called then some empty globals can remain as well as the ID counter if it exists. The default value for pInitializeExtent
is 1. Unless the caller specifies a false value for pInitializeExtent the globals used by the extent will be killed. If the
process' GlobalKillDisabled flag is enabled and not the default of false the process' GlobalKillDisabled flag will be changed temporarily to false
to allow the operation to complete without a possible
Deprecated: Please use NameIndexOpen() and %DeleteId()
Deprecated: Please use %DeleteId()
Deprecated: Please use NameIndexExists()
Takes an input string pString and returns its normalized form as returned by the iKnow engine. Using this method will ensure a string has the same form as any results (entities) returned by the engine as a result of iKnow indexing with this Configuration object.
More specifically, this normalization takes into account the following properties:
- User Dictionary literal input substitutions.
- Language model preprocess filters.
- Character normalization (lower casing and some punctuation separation)
- Whitespace compression.
- Entity filters.
Input substitution adheres to the User Dictionary as specified in the UserDictionary property of this Configuration. If not specified through pLanguage (as a two-letter language code), the language will be randomly selected by the engine from the list specified in this Configuration's Languages property, so it's recommended to supply a value for pLanguage if Languages contains more than one entry. If specified, pLanguage should appear in Languages
See also NormalizeWithParams() to normalize without a Configuration object.
Takes an input string pString and returns its normalized form as returned by the iKnow engine. Using this method will ensure a string has the same form as any results (entities) returned by the engine as a result of indexing operations.
More specifically, this normalization takes into account the following properties:
- User Dictionary literal input substitutions.
- Language model preprocess filters.
- Character normalization (lower casing and some punctuation separation)
- Whitespace compression.
- Entity filters.
Input substitution adheres to the User Dictionary as specified through pUserDictionary and the preprocess filters for language pLanguage are used.
See also Normalize() to normalize using an existing Configuration object.
Deprecated: Please use %OpenId()
Queries
Deprecated: Please use normal SQL queries to approach this class.
Indexes
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %AddToSyncSet()
- %BuildDeferredIndices()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %Delete()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
- %ValidateTable()
Storage
Storage Model: SQLStorage
Maps: 2
Map number 1 is named MainMap
thismap.Global: ^IRIS.IK.Sys.ConfigD
Map number 2 is named NameIndex
thismap.Global: ^IRIS.IK.Sys.ConfigI
^IRIS.IK.Sys.ConfigD({Id})
|
= |
|
^IRIS.IK.Sys.ConfigI($$$UPPER({Name}))
|
= |
|