public class TextIndex extends Expression implements com.sun.xml.bind.Locatable, 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 String |
countHits |
protected Expression |
expression |
protected List<Extension> |
extensions |
protected Boolean |
isCaseSensitive |
protected String |
localTermWeights |
protected Locator |
locator |
protected Integer |
maxLevenshteinDistance |
protected FieldName |
textField |
protected List<TextIndexNormalization> |
textIndexNormalizations |
protected Boolean |
tokenize |
protected String |
wordSeparatorCharacterRE |
| Constructor and Description |
|---|
TextIndex() |
TextIndex(FieldName textField) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
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 |
isIsCaseSensitive()
Gets the value of the isCaseSensitive property.
|
boolean |
isTokenize()
Gets the value of the tokenize property.
|
void |
setCountHits(String value)
Sets the value of the countHits property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setIsCaseSensitive(Boolean value)
Sets the value of the isCaseSensitive property.
|
void |
setLocalTermWeights(String value)
Sets the value of the localTermWeights property.
|
void |
setMaxLevenshteinDistance(Integer value)
Sets the value of the maxLevenshteinDistance property.
|
void |
setSourceLocation(Locator newLocator) |
void |
setTextField(FieldName value)
Sets the value of the textField property.
|
void |
setTokenize(Boolean value)
Sets the value of the tokenize property.
|
void |
setWordSeparatorCharacterRE(String value)
Sets the value of the wordSeparatorCharacterRE property.
|
Locator |
sourceLocation() |
TextIndex |
withCountHits(String value) |
TextIndex |
withExpression(Expression value) |
TextIndex |
withExtensions(Collection<Extension> values) |
TextIndex |
withExtensions(Extension... values) |
TextIndex |
withIsCaseSensitive(Boolean value) |
TextIndex |
withLocalTermWeights(String value) |
TextIndex |
withMaxLevenshteinDistance(Integer value) |
TextIndex |
withTextField(FieldName value) |
TextIndex |
withTextIndexNormalizations(Collection<TextIndexNormalization> values) |
TextIndex |
withTextIndexNormalizations(TextIndexNormalization... values) |
TextIndex |
withTokenize(Boolean value) |
TextIndex |
withWordSeparatorCharacterRE(String value) |
protected List<TextIndexNormalization> textIndexNormalizations
protected Expression expression
protected FieldName textField
protected String localTermWeights
protected Boolean isCaseSensitive
protected Integer maxLevenshteinDistance
protected String countHits
protected String wordSeparatorCharacterRE
protected Boolean tokenize
protected Locator locator
public TextIndex()
public TextIndex(FieldName textField)
public 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 void setExpression(Expression value)
value - allowed object is
Constant
FieldRef
NormContinuous
NormDiscrete
Discretize
MapValues
TextIndex
Apply
Aggregatepublic FieldName getTextField()
Stringpublic void setTextField(FieldName value)
value - allowed object is
Stringpublic String getLocalTermWeights()
Stringpublic void setLocalTermWeights(String value)
value - allowed object is
Stringpublic boolean isIsCaseSensitive()
Booleanpublic void setIsCaseSensitive(Boolean value)
value - allowed object is
Booleanpublic int getMaxLevenshteinDistance()
Stringpublic void setMaxLevenshteinDistance(Integer value)
value - allowed object is
Stringpublic String getCountHits()
Stringpublic void setCountHits(String value)
value - allowed object is
Stringpublic String getWordSeparatorCharacterRE()
Stringpublic void setWordSeparatorCharacterRE(String value)
value - allowed object is
Stringpublic boolean isTokenize()
Booleanpublic void setTokenize(Boolean value)
value - allowed object is
Booleanpublic TextIndex withExtensions(Collection<Extension> values)
public TextIndex withTextIndexNormalizations(TextIndexNormalization... values)
public TextIndex withTextIndexNormalizations(Collection<TextIndexNormalization> values)
public TextIndex withExpression(Expression value)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.