public class TextModel extends Model implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}MiningSchema"/>
<element ref="{http://www.dmg.org/PMML-4_2}Output" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelStats" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelExplanation" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}Targets" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}LocalTransformations" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}TextDictionary"/>
<element ref="{http://www.dmg.org/PMML-4_2}TextCorpus"/>
<element ref="{http://www.dmg.org/PMML-4_2}DocumentTermMatrix"/>
<element ref="{http://www.dmg.org/PMML-4_2}TextModelNormalization" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}TextModelSimiliarity" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelVerification" minOccurs="0"/>
</sequence>
<attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_2}MINING-FUNCTION" />
<attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="numberOfTerms" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="numberOfDocuments" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
TextModel() |
TextModel(MiningFunctionType functionName,
Integer numberOfTerms,
Integer numberOfDocuments,
MiningSchema miningSchema,
TextDictionary textDictionary,
TextCorpus textCorpus,
DocumentTermMatrix documentTermMatrix) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
TextModel |
addExtensions(Extension... extensions) |
String |
getAlgorithmName()
Gets the value of the algorithmName property.
|
DocumentTermMatrix |
getDocumentTermMatrix()
Gets the value of the documentTermMatrix property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
MiningFunctionType |
getFunctionName()
Gets the value of the functionName property.
|
LocalTransformations |
getLocalTransformations()
Gets the value of the localTransformations property.
|
MiningSchema |
getMiningSchema()
Gets the value of the miningSchema property.
|
ModelExplanation |
getModelExplanation()
Gets the value of the modelExplanation property.
|
String |
getModelName()
Gets the value of the modelName property.
|
ModelStats |
getModelStats()
Gets the value of the modelStats property.
|
ModelVerification |
getModelVerification()
Gets the value of the modelVerification property.
|
Integer |
getNumberOfDocuments()
Gets the value of the numberOfDocuments property.
|
Integer |
getNumberOfTerms()
Gets the value of the numberOfTerms property.
|
Output |
getOutput()
Gets the value of the output property.
|
Targets |
getTargets()
Gets the value of the targets property.
|
TextCorpus |
getTextCorpus()
Gets the value of the textCorpus property.
|
TextDictionary |
getTextDictionary()
Gets the value of the textDictionary property.
|
TextModelNormalization |
getTextModelNormalization()
Gets the value of the textModelNormalization property.
|
TextModelSimiliarity |
getTextModelSimiliarity()
Gets the value of the textModelSimiliarity property.
|
boolean |
hasExtensions() |
boolean |
isScorable()
Gets the value of the scorable property.
|
TextModel |
setAlgorithmName(String algorithmName)
Sets the value of the algorithmName property.
|
TextModel |
setDocumentTermMatrix(DocumentTermMatrix documentTermMatrix)
Sets the value of the documentTermMatrix property.
|
TextModel |
setFunctionName(MiningFunctionType functionName)
Sets the value of the functionName property.
|
TextModel |
setLocalTransformations(LocalTransformations localTransformations)
Sets the value of the localTransformations property.
|
TextModel |
setMiningSchema(MiningSchema miningSchema)
Sets the value of the miningSchema property.
|
TextModel |
setModelExplanation(ModelExplanation modelExplanation)
Sets the value of the modelExplanation property.
|
TextModel |
setModelName(String modelName)
Sets the value of the modelName property.
|
TextModel |
setModelStats(ModelStats modelStats)
Sets the value of the modelStats property.
|
TextModel |
setModelVerification(ModelVerification modelVerification)
Sets the value of the modelVerification property.
|
TextModel |
setNumberOfDocuments(Integer numberOfDocuments)
Sets the value of the numberOfDocuments property.
|
TextModel |
setNumberOfTerms(Integer numberOfTerms)
Sets the value of the numberOfTerms property.
|
TextModel |
setOutput(Output output)
Sets the value of the output property.
|
TextModel |
setScorable(Boolean scorable)
Sets the value of the scorable property.
|
TextModel |
setTargets(Targets targets)
Sets the value of the targets property.
|
TextModel |
setTextCorpus(TextCorpus textCorpus)
Sets the value of the textCorpus property.
|
TextModel |
setTextDictionary(TextDictionary textDictionary)
Sets the value of the textDictionary property.
|
TextModel |
setTextModelNormalization(TextModelNormalization textModelNormalization)
Sets the value of the textModelNormalization property.
|
TextModel |
setTextModelSimiliarity(TextModelSimiliarity textModelSimiliarity)
Sets the value of the textModelSimiliarity property.
|
getLocator, setLocatorpublic TextModel()
public TextModel(MiningFunctionType functionName, Integer numberOfTerms, Integer numberOfDocuments, MiningSchema miningSchema, TextDictionary textDictionary, TextCorpus textCorpus, DocumentTermMatrix documentTermMatrix)
public String getModelName()
getModelName in class ModelStringpublic TextModel setModelName(String modelName)
setModelName in class ModelmodelName - allowed object is
Stringpublic MiningFunctionType getFunctionName()
getFunctionName in class ModelMiningFunctionTypepublic TextModel setFunctionName(MiningFunctionType functionName)
setFunctionName in class ModelfunctionName - allowed object is
MiningFunctionTypepublic String getAlgorithmName()
getAlgorithmName in class ModelStringpublic TextModel setAlgorithmName(String algorithmName)
setAlgorithmName in class ModelalgorithmName - allowed object is
Stringpublic Integer getNumberOfTerms()
Stringpublic TextModel setNumberOfTerms(Integer numberOfTerms)
numberOfTerms - allowed object is
Stringpublic Integer getNumberOfDocuments()
Stringpublic TextModel setNumberOfDocuments(Integer numberOfDocuments)
numberOfDocuments - allowed object is
Stringpublic boolean isScorable()
isScorable in class ModelBooleanpublic TextModel setScorable(Boolean scorable)
setScorable in class Modelscorable - allowed object is
Booleanpublic List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic MiningSchema getMiningSchema()
getMiningSchema in class ModelMiningSchemapublic TextModel setMiningSchema(MiningSchema miningSchema)
setMiningSchema in class ModelminingSchema - allowed object is
MiningSchemapublic Output getOutput()
public ModelStats getModelStats()
getModelStats in class ModelModelStatspublic TextModel setModelStats(ModelStats modelStats)
setModelStats in class ModelmodelStats - allowed object is
ModelStatspublic ModelExplanation getModelExplanation()
getModelExplanation in class ModelModelExplanationpublic TextModel setModelExplanation(ModelExplanation modelExplanation)
setModelExplanation in class ModelmodelExplanation - allowed object is
ModelExplanationpublic Targets getTargets()
getTargets in class ModelTargetspublic TextModel setTargets(Targets targets)
setTargets in class Modeltargets - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class ModelLocalTransformationspublic TextModel setLocalTransformations(LocalTransformations localTransformations)
setLocalTransformations in class ModellocalTransformations - allowed object is
LocalTransformationspublic TextDictionary getTextDictionary()
TextDictionarypublic TextModel setTextDictionary(TextDictionary textDictionary)
textDictionary - allowed object is
TextDictionarypublic TextCorpus getTextCorpus()
TextCorpuspublic TextModel setTextCorpus(TextCorpus textCorpus)
textCorpus - allowed object is
TextCorpuspublic DocumentTermMatrix getDocumentTermMatrix()
DocumentTermMatrixpublic TextModel setDocumentTermMatrix(DocumentTermMatrix documentTermMatrix)
documentTermMatrix - allowed object is
DocumentTermMatrixpublic TextModelNormalization getTextModelNormalization()
TextModelNormalizationpublic TextModel setTextModelNormalization(TextModelNormalization textModelNormalization)
textModelNormalization - allowed object is
TextModelNormalizationpublic TextModelSimiliarity getTextModelSimiliarity()
TextModelSimiliaritypublic TextModel setTextModelSimiliarity(TextModelSimiliarity textModelSimiliarity)
textModelSimiliarity - allowed object is
TextModelSimiliaritypublic ModelVerification getModelVerification()
getModelVerification in class ModelModelVerificationpublic TextModel setModelVerification(ModelVerification modelVerification)
setModelVerification in class ModelmodelVerification - allowed object is
ModelVerificationpublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.