Skip to main content

%DeepSee.PMML.Builder.Text

Class %DeepSee.PMML.Builder.Text Extends %DeepSee.PMML.Builder.AbstractBuilder [ System = 4 ]

Parameters

MODELCLASSNAME

Parameter MODELCLASSNAME = "%DeepSee.PMML.Definition.Models.TextModel";

Properties

EntityCount

Property EntityCount As %String [ InitialExpression = 50 ];

InputLanguages

Property InputLanguages As %String;

InputType

Property InputType As %String(VALUELIST = ",text,terms") [ InitialExpression = "text" ];

Whether the model should have separate DataFields for each term or a single containing the whole text

TermWeightsLocal

Property TermWeightsLocal As %String(VALUELIST = ",termFrequency,binary,logarithmic,augmentedNormalizedTermFrequency") [ InitialExpression = "termFrequency" ];

TermWeightsGlobal

Property TermWeightsGlobal As %String(VALUELIST = ",inverseDocumentFrequency,none,GFIDF,normal,probabilisticInverse") [ InitialExpression = "inverseDocumentFrequency" ];

TermWeightsDocumentNormalization

Property TermWeightsDocumentNormalization As %String(VALUELIST = ",none,cosine") [ InitialExpression = "none" ];

SimilarityType

Property SimilarityType As %String(VALUELIST = ",euclidian,cosine") [ InitialExpression = "cosine" ];

TermSelectionMetric

Property TermSelectionMetric As %String(VALUELIST = ",NaiveBayes,BM25");

Methods

BuildModel

Method BuildModel(ByRef pModel As %DeepSee.PMML.Definition.Models.AbstractModel) As %Status [ Private ]

GetEntitiesByNBProb

Method GetEntitiesByNBProb(pDomainId As %Integer, ByRef pFilters) As %Status

GetEntitiesByBM25

Method GetEntitiesByBM25(pDomainId As %Integer, pEntType As %Integer = {$$$ENTTYPECONCEPT}) As %Status