Package org.dmg.pmml.text
Class TextModel
- java.lang.Object
-
- org.dmg.pmml.PMMLObject
-
- org.dmg.pmml.Model
-
- org.dmg.pmml.text.TextModel
-
- All Implemented Interfaces:
java.io.Serializable,HasExtensions<TextModel>,HasLocator,Visitable
public class TextModel extends Model implements HasExtensions<TextModel>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TextModel()TextModel(MiningFunction miningFunction, java.lang.Integer numberOfTerms, java.lang.Integer numberOfDocuments, MiningSchema miningSchema, TextDictionary textDictionary, TextCorpus textCorpus, DocumentTermMatrix documentTermMatrix)
-
Method Summary
-
Methods inherited from class org.dmg.pmml.PMMLObject
getLocator, getSchemaVersion, getSchemaVersion, hasLocator, setLocator
-
-
-
-
Constructor Detail
-
TextModel
public TextModel()
-
TextModel
public TextModel(MiningFunction miningFunction, java.lang.Integer numberOfTerms, java.lang.Integer numberOfDocuments, MiningSchema miningSchema, TextDictionary textDictionary, TextCorpus textCorpus, DocumentTermMatrix documentTermMatrix)
-
-
Method Detail
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein classModel
-
setModelName
public TextModel setModelName(java.lang.String modelName)
- Specified by:
setModelNamein classModel
-
requireMiningFunction
public MiningFunction requireMiningFunction()
- Specified by:
requireMiningFunctionin classModel
-
getMiningFunction
public MiningFunction getMiningFunction()
- Specified by:
getMiningFunctionin classModel
-
setMiningFunction
public TextModel setMiningFunction(MiningFunction miningFunction)
- Specified by:
setMiningFunctionin classModel
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmNamein classModel
-
setAlgorithmName
public TextModel setAlgorithmName(java.lang.String algorithmName)
- Specified by:
setAlgorithmNamein classModel
-
requireNumberOfTerms
public java.lang.Integer requireNumberOfTerms()
-
getNumberOfTerms
public java.lang.Integer getNumberOfTerms()
-
setNumberOfTerms
public TextModel setNumberOfTerms(java.lang.Integer numberOfTerms)
-
requireNumberOfDocuments
public java.lang.Integer requireNumberOfDocuments()
-
getNumberOfDocuments
public java.lang.Integer getNumberOfDocuments()
-
setNumberOfDocuments
public TextModel setNumberOfDocuments(java.lang.Integer numberOfDocuments)
-
isScorable
public boolean isScorable()
- Specified by:
isScorablein classModel
-
setScorable
public TextModel setScorable(java.lang.Boolean scorable)
- Specified by:
setScorablein classModel
-
getMathContext
public MathContext getMathContext()
- Specified by:
getMathContextin classModel
-
setMathContext
public TextModel setMathContext(MathContext mathContext)
- Specified by:
setMathContextin classModel
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfaceHasExtensions<TextModel>
-
getExtensions
public java.util.List<Extension> getExtensions()
- Specified by:
getExtensionsin interfaceHasExtensions<TextModel>
-
addExtensions
public TextModel addExtensions(Extension... extensions)
- Specified by:
addExtensionsin interfaceHasExtensions<TextModel>
-
requireMiningSchema
public MiningSchema requireMiningSchema()
- Specified by:
requireMiningSchemain classModel
-
getMiningSchema
public MiningSchema getMiningSchema()
- Specified by:
getMiningSchemain classModel
-
setMiningSchema
public TextModel setMiningSchema(MiningSchema miningSchema)
- Specified by:
setMiningSchemain classModel
-
getModelStats
public ModelStats getModelStats()
- Overrides:
getModelStatsin classModel
-
setModelStats
public TextModel setModelStats(ModelStats modelStats)
- Overrides:
setModelStatsin classModel
-
getModelExplanation
public ModelExplanation getModelExplanation()
- Overrides:
getModelExplanationin classModel
-
setModelExplanation
public TextModel setModelExplanation(ModelExplanation modelExplanation)
- Overrides:
setModelExplanationin classModel
-
getTargets
public Targets getTargets()
- Overrides:
getTargetsin classModel
-
setTargets
public TextModel setTargets(Targets targets)
- Overrides:
setTargetsin classModel
-
getLocalTransformations
public LocalTransformations getLocalTransformations()
- Specified by:
getLocalTransformationsin classModel
-
setLocalTransformations
public TextModel setLocalTransformations(LocalTransformations localTransformations)
- Specified by:
setLocalTransformationsin classModel
-
requireTextDictionary
public TextDictionary requireTextDictionary()
-
getTextDictionary
public TextDictionary getTextDictionary()
-
setTextDictionary
public TextModel setTextDictionary(TextDictionary textDictionary)
-
requireTextCorpus
public TextCorpus requireTextCorpus()
-
getTextCorpus
public TextCorpus getTextCorpus()
-
setTextCorpus
public TextModel setTextCorpus(TextCorpus textCorpus)
-
requireDocumentTermMatrix
public DocumentTermMatrix requireDocumentTermMatrix()
-
getDocumentTermMatrix
public DocumentTermMatrix getDocumentTermMatrix()
-
setDocumentTermMatrix
public TextModel setDocumentTermMatrix(DocumentTermMatrix documentTermMatrix)
-
getTextModelNormalization
public TextModelNormalization getTextModelNormalization()
-
setTextModelNormalization
public TextModel setTextModelNormalization(TextModelNormalization textModelNormalization)
-
getTextModelSimiliarity
public TextModelSimiliarity getTextModelSimiliarity()
-
setTextModelSimiliarity
public TextModel setTextModelSimiliarity(TextModelSimiliarity textModelSimiliarity)
-
getModelVerification
public ModelVerification getModelVerification()
- Overrides:
getModelVerificationin classModel
-
setModelVerification
public TextModel setModelVerification(ModelVerification modelVerification)
- Overrides:
setModelVerificationin classModel
-
accept
public VisitorAction accept(Visitor visitor)
-
-