%iKnow.Classification.Classifier
deprecated abstract class %iKnow.Classification.Classifier extends %Library.RegisteredObject
The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentationOpens in a new tab for more detail.
This is the superclass for executable Text Categorization models. Upon compiling a subclass of this class, the required internal code will be generated to support the class' main methods %Categorize() and %CategorizeText(). To invoke a Text Categorization model on free text:
set tClassifier = ##class(User.MyClassifier).%New()
write tClassifier.%CategorizeText(.tCategories, "The helicopter was not flying at a sufficiently high altitude ...")
zwrite tCategories
To invoke it on a source in an iKnow domain:
set tClassifier = ##class(User.MyClassifier).%New("iKnow", [domain name])
write tClassifier.%Categorize(.tCategories, tSourceId)
zwrite tCategories
Method Inventory
Methods
This method runs the Text Categorization model defined in
If this Classifier instance has not been initialized with a reference to an iKnow or other domain, supply pMode="iKnow" and the domain name as pDomainSpec to point this classifier to the right location.
This method runs the Text Categorization model defined in
Optionally a %iKnow.Configuration's name can be passed in through pConfig to override the default configuration to use when indexing the text, for example to use a language model other than the default English (or automatically detect the right language to use).
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()