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.w3.org/2001/XMLSchema}integer" />
<attribute name="numberOfDocuments" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
<attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
algorithmName |
protected DocumentTermMatrix |
documentTermMatrix |
protected java.util.List<Extension> |
extensions |
protected MiningFunctionType |
functionName |
protected LocalTransformations |
localTransformations |
protected MiningSchema |
miningSchema |
protected ModelExplanation |
modelExplanation |
protected java.lang.String |
modelName |
protected ModelStats |
modelStats |
protected ModelVerification |
modelVerification |
protected java.lang.Integer |
numberOfDocuments |
protected java.lang.Integer |
numberOfTerms |
protected Output |
output |
protected java.lang.Boolean |
scorable |
protected Targets |
targets |
protected TextCorpus |
textCorpus |
protected TextDictionary |
textDictionary |
protected TextModelNormalization |
textModelNormalization |
protected TextModelSimiliarity |
textModelSimiliarity |
| Constructor and Description |
|---|
TextModel() |
TextModel(MiningFunctionType functionName,
java.lang.Integer numberOfTerms,
java.lang.Integer numberOfDocuments,
MiningSchema miningSchema,
TextDictionary textDictionary,
TextCorpus textCorpus,
DocumentTermMatrix documentTermMatrix) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.String |
getAlgorithmName()
Gets the value of the algorithmName property.
|
DocumentTermMatrix |
getDocumentTermMatrix()
Gets the value of the documentTermMatrix property.
|
java.util.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.
|
java.lang.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.
|
java.lang.Integer |
getNumberOfDocuments()
Gets the value of the numberOfDocuments property.
|
java.lang.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.
|
void |
setAlgorithmName(java.lang.String value)
Sets the value of the algorithmName property.
|
void |
setDocumentTermMatrix(DocumentTermMatrix value)
Sets the value of the documentTermMatrix property.
|
void |
setFunctionName(MiningFunctionType value)
Sets the value of the functionName property.
|
void |
setLocalTransformations(LocalTransformations value)
Sets the value of the localTransformations property.
|
void |
setMiningSchema(MiningSchema value)
Sets the value of the miningSchema property.
|
void |
setModelExplanation(ModelExplanation value)
Sets the value of the modelExplanation property.
|
void |
setModelName(java.lang.String value)
Sets the value of the modelName property.
|
void |
setModelStats(ModelStats value)
Sets the value of the modelStats property.
|
void |
setModelVerification(ModelVerification value)
Sets the value of the modelVerification property.
|
void |
setNumberOfDocuments(java.lang.Integer value)
Sets the value of the numberOfDocuments property.
|
void |
setNumberOfTerms(java.lang.Integer value)
Sets the value of the numberOfTerms property.
|
void |
setOutput(Output value)
Sets the value of the output property.
|
void |
setScorable(java.lang.Boolean value)
Sets the value of the scorable property.
|
void |
setTargets(Targets value)
Sets the value of the targets property.
|
void |
setTextCorpus(TextCorpus value)
Sets the value of the textCorpus property.
|
void |
setTextDictionary(TextDictionary value)
Sets the value of the textDictionary property.
|
void |
setTextModelNormalization(TextModelNormalization value)
Sets the value of the textModelNormalization property.
|
void |
setTextModelSimiliarity(TextModelSimiliarity value)
Sets the value of the textModelSimiliarity property.
|
TextModel |
withAlgorithmName(java.lang.String value) |
TextModel |
withDocumentTermMatrix(DocumentTermMatrix value) |
TextModel |
withExtensions(java.util.Collection<Extension> values) |
TextModel |
withExtensions(Extension... values) |
TextModel |
withFunctionName(MiningFunctionType value) |
TextModel |
withLocalTransformations(LocalTransformations value) |
TextModel |
withMiningSchema(MiningSchema value) |
TextModel |
withModelExplanation(ModelExplanation value) |
TextModel |
withModelName(java.lang.String value) |
TextModel |
withModelStats(ModelStats value) |
TextModel |
withModelVerification(ModelVerification value) |
TextModel |
withNumberOfDocuments(java.lang.Integer value) |
TextModel |
withNumberOfTerms(java.lang.Integer value) |
TextModel |
withOutput(Output value) |
TextModel |
withScorable(java.lang.Boolean value) |
TextModel |
withTargets(Targets value) |
TextModel |
withTextCorpus(TextCorpus value) |
TextModel |
withTextDictionary(TextDictionary value) |
TextModel |
withTextModelNormalization(TextModelNormalization value) |
TextModel |
withTextModelSimiliarity(TextModelSimiliarity value) |
getLocator, setLocatorprotected java.lang.String modelName
protected MiningFunctionType functionName
protected java.lang.String algorithmName
protected java.lang.Integer numberOfTerms
protected java.lang.Integer numberOfDocuments
protected java.lang.Boolean scorable
protected java.util.List<Extension> extensions
protected MiningSchema miningSchema
protected Output output
protected ModelStats modelStats
protected ModelExplanation modelExplanation
protected Targets targets
protected LocalTransformations localTransformations
protected TextDictionary textDictionary
protected TextCorpus textCorpus
protected DocumentTermMatrix documentTermMatrix
protected TextModelNormalization textModelNormalization
protected TextModelSimiliarity textModelSimiliarity
protected ModelVerification modelVerification
public TextModel()
public TextModel(MiningFunctionType functionName, java.lang.Integer numberOfTerms, java.lang.Integer numberOfDocuments, MiningSchema miningSchema, TextDictionary textDictionary, TextCorpus textCorpus, DocumentTermMatrix documentTermMatrix)
public java.lang.String getModelName()
getModelName in class ModelStringpublic void setModelName(java.lang.String value)
setModelName in class Modelvalue - allowed object is
Stringpublic MiningFunctionType getFunctionName()
getFunctionName in class ModelMiningFunctionTypepublic void setFunctionName(MiningFunctionType value)
setFunctionName in class Modelvalue - allowed object is
MiningFunctionTypepublic java.lang.String getAlgorithmName()
getAlgorithmName in class ModelStringpublic void setAlgorithmName(java.lang.String value)
setAlgorithmName in class Modelvalue - allowed object is
Stringpublic java.lang.Integer getNumberOfTerms()
Stringpublic void setNumberOfTerms(java.lang.Integer value)
value - allowed object is
Stringpublic java.lang.Integer getNumberOfDocuments()
Stringpublic void setNumberOfDocuments(java.lang.Integer value)
value - allowed object is
Stringpublic boolean isScorable()
isScorable in class ModelBooleanpublic void setScorable(java.lang.Boolean value)
setScorable in class Modelvalue - allowed object is
Booleanpublic java.util.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 void setMiningSchema(MiningSchema value)
setMiningSchema in class Modelvalue - allowed object is
MiningSchemapublic Output getOutput()
public void setOutput(Output value)
public ModelStats getModelStats()
getModelStats in class ModelModelStatspublic void setModelStats(ModelStats value)
setModelStats in class Modelvalue - allowed object is
ModelStatspublic ModelExplanation getModelExplanation()
getModelExplanation in class ModelModelExplanationpublic void setModelExplanation(ModelExplanation value)
setModelExplanation in class Modelvalue - allowed object is
ModelExplanationpublic Targets getTargets()
getTargets in class ModelTargetspublic void setTargets(Targets value)
setTargets in class Modelvalue - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class ModelLocalTransformationspublic void setLocalTransformations(LocalTransformations value)
setLocalTransformations in class Modelvalue - allowed object is
LocalTransformationspublic TextDictionary getTextDictionary()
TextDictionarypublic void setTextDictionary(TextDictionary value)
value - allowed object is
TextDictionarypublic TextCorpus getTextCorpus()
TextCorpuspublic void setTextCorpus(TextCorpus value)
value - allowed object is
TextCorpuspublic DocumentTermMatrix getDocumentTermMatrix()
DocumentTermMatrixpublic void setDocumentTermMatrix(DocumentTermMatrix value)
value - allowed object is
DocumentTermMatrixpublic TextModelNormalization getTextModelNormalization()
TextModelNormalizationpublic void setTextModelNormalization(TextModelNormalization value)
value - allowed object is
TextModelNormalizationpublic TextModelSimiliarity getTextModelSimiliarity()
TextModelSimiliaritypublic void setTextModelSimiliarity(TextModelSimiliarity value)
value - allowed object is
TextModelSimiliaritypublic ModelVerification getModelVerification()
getModelVerification in class ModelModelVerificationpublic void setModelVerification(ModelVerification value)
setModelVerification in class Modelvalue - allowed object is
ModelVerificationpublic TextModel withModelName(java.lang.String value)
public TextModel withFunctionName(MiningFunctionType value)
public TextModel withAlgorithmName(java.lang.String value)
public TextModel withNumberOfTerms(java.lang.Integer value)
public TextModel withNumberOfDocuments(java.lang.Integer value)
public TextModel withScorable(java.lang.Boolean value)
public TextModel withMiningSchema(MiningSchema value)
public TextModel withModelStats(ModelStats value)
public TextModel withModelExplanation(ModelExplanation value)
public TextModel withLocalTransformations(LocalTransformations value)
public TextModel withTextDictionary(TextDictionary value)
public TextModel withTextCorpus(TextCorpus value)
public TextModel withDocumentTermMatrix(DocumentTermMatrix value)
public TextModel withTextModelNormalization(TextModelNormalization value)
public TextModel withTextModelSimiliarity(TextModelSimiliarity value)
public TextModel withModelVerification(ModelVerification value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.