public class TextIndex extends Expression 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}TextIndexNormalization" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://www.dmg.org/PMML-4_2}EXPRESSION"/>
</sequence>
<attribute name="textField" use="required" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="localTermWeights" default="termFrequency">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="termFrequency"/>
<enumeration value="binary"/>
<enumeration value="logarithmic"/>
<enumeration value="augmentedNormalizedTermFrequency"/>
</restriction>
</simpleType>
</attribute>
<attribute name="isCaseSensitive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="maxLevenshteinDistance" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
<attribute name="countHits" default="allHits">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="allHits"/>
<enumeration value="bestHits"/>
</restriction>
</simpleType>
</attribute>
<attribute name="wordSeparatorCharacterRE" type="{http://www.w3.org/2001/XMLSchema}string" default="\s" />
<attribute name="tokenize" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
countHits |
protected Expression |
expression |
protected java.util.List<Extension> |
extensions |
protected java.lang.Boolean |
isCaseSensitive |
protected java.lang.String |
localTermWeights |
protected java.lang.Integer |
maxLevenshteinDistance |
protected FieldName |
textField |
protected java.util.List<TextIndexNormalization> |
textIndexNormalizations |
protected java.lang.Boolean |
tokenize |
protected java.lang.String |
wordSeparatorCharacterRE |
| Constructor and Description |
|---|
TextIndex() |
TextIndex(FieldName textField) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.String |
getCountHits()
Gets the value of the countHits property.
|
Expression |
getExpression()
Gets the value of the expression property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getLocalTermWeights()
Gets the value of the localTermWeights property.
|
int |
getMaxLevenshteinDistance()
Gets the value of the maxLevenshteinDistance property.
|
FieldName |
getTextField()
Gets the value of the textField property.
|
java.util.List<TextIndexNormalization> |
getTextIndexNormalizations()
Gets the value of the textIndexNormalizations property.
|
java.lang.String |
getWordSeparatorCharacterRE()
Gets the value of the wordSeparatorCharacterRE property.
|
boolean |
hasExtensions() |
boolean |
hasTextIndexNormalizations() |
boolean |
isIsCaseSensitive()
Gets the value of the isCaseSensitive property.
|
boolean |
isTokenize()
Gets the value of the tokenize property.
|
void |
setCountHits(java.lang.String value)
Sets the value of the countHits property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setIsCaseSensitive(java.lang.Boolean value)
Sets the value of the isCaseSensitive property.
|
void |
setLocalTermWeights(java.lang.String value)
Sets the value of the localTermWeights property.
|
void |
setMaxLevenshteinDistance(java.lang.Integer value)
Sets the value of the maxLevenshteinDistance property.
|
void |
setTextField(FieldName value)
Sets the value of the textField property.
|
void |
setTokenize(java.lang.Boolean value)
Sets the value of the tokenize property.
|
void |
setWordSeparatorCharacterRE(java.lang.String value)
Sets the value of the wordSeparatorCharacterRE property.
|
TextIndex |
withCountHits(java.lang.String value) |
TextIndex |
withExpression(Expression value) |
TextIndex |
withExtensions(java.util.Collection<Extension> values) |
TextIndex |
withExtensions(Extension... values) |
TextIndex |
withIsCaseSensitive(java.lang.Boolean value) |
TextIndex |
withLocalTermWeights(java.lang.String value) |
TextIndex |
withMaxLevenshteinDistance(java.lang.Integer value) |
TextIndex |
withTextField(FieldName value) |
TextIndex |
withTextIndexNormalizations(java.util.Collection<TextIndexNormalization> values) |
TextIndex |
withTextIndexNormalizations(TextIndexNormalization... values) |
TextIndex |
withTokenize(java.lang.Boolean value) |
TextIndex |
withWordSeparatorCharacterRE(java.lang.String value) |
getLocator, setLocatorprotected FieldName textField
protected java.lang.String localTermWeights
protected java.lang.Boolean isCaseSensitive
protected java.lang.Integer maxLevenshteinDistance
protected java.lang.String countHits
protected java.lang.String wordSeparatorCharacterRE
protected java.lang.Boolean tokenize
protected java.util.List<Extension> extensions
protected java.util.List<TextIndexNormalization> textIndexNormalizations
protected Expression expression
public TextIndex()
public TextIndex(FieldName textField)
public FieldName getTextField()
Stringpublic void setTextField(FieldName value)
value - allowed object is
Stringpublic java.lang.String getLocalTermWeights()
Stringpublic void setLocalTermWeights(java.lang.String value)
value - allowed object is
Stringpublic boolean isIsCaseSensitive()
Booleanpublic void setIsCaseSensitive(java.lang.Boolean value)
value - allowed object is
Booleanpublic int getMaxLevenshteinDistance()
Stringpublic void setMaxLevenshteinDistance(java.lang.Integer value)
value - allowed object is
Stringpublic java.lang.String getCountHits()
Stringpublic void setCountHits(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getWordSeparatorCharacterRE()
Stringpublic void setWordSeparatorCharacterRE(java.lang.String value)
value - allowed object is
Stringpublic boolean isTokenize()
Booleanpublic void setTokenize(java.lang.Boolean value)
value - 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 java.util.List<TextIndexNormalization> getTextIndexNormalizations()
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 textIndexNormalizations property.
For example, to add a new item, do as follows:
getTextIndexNormalizations().add(newItem);
Objects of the following type(s) are allowed in the list
TextIndexNormalization
public Expression getExpression()
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic void setExpression(Expression value)
value - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic TextIndex withLocalTermWeights(java.lang.String value)
public TextIndex withIsCaseSensitive(java.lang.Boolean value)
public TextIndex withMaxLevenshteinDistance(java.lang.Integer value)
public TextIndex withCountHits(java.lang.String value)
public TextIndex withWordSeparatorCharacterRE(java.lang.String value)
public TextIndex withTokenize(java.lang.Boolean value)
public TextIndex withTextIndexNormalizations(TextIndexNormalization... values)
public TextIndex withTextIndexNormalizations(java.util.Collection<TextIndexNormalization> values)
public TextIndex withExpression(Expression value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasTextIndexNormalizations()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.