public class TextIndex extends Expression implements HasExpression, 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_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}TextIndexNormalization" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://www.dmg.org/PMML-4_3}EXPRESSION"/>
</sequence>
<attribute name="textField" use="required" type="{http://www.dmg.org/PMML-4_3}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.dmg.org/PMML-4_3}INT-NUMBER" 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 | Class and Description |
|---|---|
static class |
TextIndex.CountHits
Java class for null.
|
static class |
TextIndex.LocalTermWeights
Java class for null.
|
| Constructor and Description |
|---|
TextIndex() |
TextIndex(FieldName textField) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
TextIndex |
addExtensions(Extension... extensions) |
TextIndex |
addTextIndexNormalizations(TextIndexNormalization... textIndexNormalizations) |
TextIndex.CountHits |
getCountHits()
Gets the value of the countHits property.
|
Expression |
getExpression()
Gets the value of the expression property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
TextIndex.LocalTermWeights |
getLocalTermWeights()
Gets the value of the localTermWeights property.
|
Integer |
getMaxLevenshteinDistance()
Gets the value of the maxLevenshteinDistance property.
|
FieldName |
getTextField()
Gets the value of the textField property.
|
List<TextIndexNormalization> |
getTextIndexNormalizations()
Gets the value of the textIndexNormalizations property.
|
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.
|
TextIndex |
setCountHits(TextIndex.CountHits countHits)
Sets the value of the countHits property.
|
TextIndex |
setExpression(Expression expression)
Sets the value of the expression property.
|
TextIndex |
setIsCaseSensitive(Boolean isCaseSensitive)
Sets the value of the isCaseSensitive property.
|
TextIndex |
setLocalTermWeights(TextIndex.LocalTermWeights localTermWeights)
Sets the value of the localTermWeights property.
|
TextIndex |
setMaxLevenshteinDistance(Integer maxLevenshteinDistance)
Sets the value of the maxLevenshteinDistance property.
|
TextIndex |
setTextField(FieldName textField)
Sets the value of the textField property.
|
TextIndex |
setTokenize(Boolean tokenize)
Sets the value of the tokenize property.
|
TextIndex |
setWordSeparatorCharacterRE(String wordSeparatorCharacterRE)
Sets the value of the wordSeparatorCharacterRE property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic TextIndex()
public TextIndex(FieldName textField)
public FieldName getTextField()
Stringpublic TextIndex setTextField(FieldName textField)
textField - allowed object is
Stringpublic TextIndex.LocalTermWeights getLocalTermWeights()
TextIndex.LocalTermWeightspublic TextIndex setLocalTermWeights(TextIndex.LocalTermWeights localTermWeights)
localTermWeights - allowed object is
TextIndex.LocalTermWeightspublic boolean isIsCaseSensitive()
Booleanpublic TextIndex setIsCaseSensitive(Boolean isCaseSensitive)
isCaseSensitive - allowed object is
Booleanpublic Integer getMaxLevenshteinDistance()
Integerpublic TextIndex setMaxLevenshteinDistance(Integer maxLevenshteinDistance)
maxLevenshteinDistance - allowed object is
Integerpublic TextIndex.CountHits getCountHits()
TextIndex.CountHitspublic TextIndex setCountHits(TextIndex.CountHits countHits)
countHits - allowed object is
TextIndex.CountHitspublic String getWordSeparatorCharacterRE()
Stringpublic TextIndex setWordSeparatorCharacterRE(String wordSeparatorCharacterRE)
wordSeparatorCharacterRE - allowed object is
Stringpublic boolean isTokenize()
Booleanpublic TextIndex setTokenize(Boolean tokenize)
tokenize - 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 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()
getExpression in interface HasExpressionConstant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregate
Lagpublic TextIndex setExpression(Expression expression)
setExpression in interface HasExpressionexpression - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregate
Lagpublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasTextIndexNormalizations()
public TextIndex addTextIndexNormalizations(TextIndexNormalization... textIndexNormalizations)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.