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.dmg.org/PMML-4_2}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>
| 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) |
String |
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.
|
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.
|
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(String 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(String 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, setLocatorpublic TextIndex()
public TextIndex(FieldName textField)
public FieldName getTextField()
Stringpublic TextIndex setTextField(FieldName textField)
textField - allowed object is
Stringpublic String getLocalTermWeights()
Stringpublic TextIndex setLocalTermWeights(String localTermWeights)
localTermWeights - allowed object is
Stringpublic boolean isIsCaseSensitive()
Booleanpublic TextIndex setIsCaseSensitive(Boolean isCaseSensitive)
isCaseSensitive - allowed object is
Booleanpublic int getMaxLevenshteinDistance()
Stringpublic TextIndex setMaxLevenshteinDistance(Integer maxLevenshteinDistance)
maxLevenshteinDistance - allowed object is
Stringpublic String getCountHits()
Stringpublic TextIndex setCountHits(String countHits)
countHits - allowed object is
Stringpublic 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()
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic TextIndex setExpression(Expression expression)
expression - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasTextIndexNormalizations()
public TextIndex addTextIndexNormalizations(TextIndexNormalization... textIndexNormalizations)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.