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}string" 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" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
countHits |
protected Expression |
expression |
protected List<Extension> |
extensions |
protected String |
isCaseSensitive |
protected String |
localTermWeights |
protected Locator |
locator |
protected Integer |
maxLevenshteinDistance |
protected FieldName |
textField |
protected List<TextIndexNormalization> |
textIndexNormalizations |
protected String |
wordSeparatorCharacterRE |
| Constructor and Description |
|---|
TextIndex()
Deprecated.
|
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 |
getIsCaseSensitive()
Gets the value of the isCaseSensitive 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.
|
void |
setCountHits(String value)
Sets the value of the countHits property.
|
void |
setExpression(Expression value)
Sets the value of the expression property.
|
void |
setIsCaseSensitive(String 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 |
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(String value) |
TextIndex |
withLocalTermWeights(String value) |
TextIndex |
withMaxLevenshteinDistance(Integer value) |
TextIndex |
withTextField(FieldName value) |
TextIndex |
withTextIndexNormalizations(Collection<TextIndexNormalization> values) |
TextIndex |
withTextIndexNormalizations(TextIndexNormalization... values) |
TextIndex |
withWordSeparatorCharacterRE(String value) |
protected List<TextIndexNormalization> textIndexNormalizations
protected Expression expression
protected FieldName textField
protected String localTermWeights
protected String isCaseSensitive
protected Integer maxLevenshteinDistance
protected String countHits
protected String wordSeparatorCharacterRE
protected Locator locator
@Deprecated 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 String getIsCaseSensitive()
Stringpublic void setIsCaseSensitive(String value)
value - allowed object is
Stringpublic 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 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.