public class SemanticExtractorConfig extends Modifiable implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.List<AbstractEntity> |
abstractEntity |
static int |
DEFAULT_LETTERS_FOR_DIST1 |
static int |
DEFAULT_LETTERS_FOR_DIST2 |
static int |
DEFAULT_WORDS_FOR_DIST1 |
static int |
DEFAULT_WORDS_FOR_DIST2 |
java.util.List<Define> |
define |
java.util.List<Include> |
include |
int |
lettersForDist1 |
int |
lettersForDist2 |
java.util.List<Rule> |
rule |
int |
wordsForDist1 |
int |
wordsForDist2 |
modifiedAt, modifiedBy
Constructor and Description |
---|
SemanticExtractorConfig() |
SemanticExtractorConfig(SemanticExtractorConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SemanticExtractorConfig.
|
static SemanticExtractorConfig |
fromString(java.lang.String s)
String representation of this SemanticExtractorConfig.
|
java.util.List<AbstractEntity> |
getAbstractEntity() |
java.util.List<Define> |
getDefine() |
java.util.List<Include> |
getInclude() |
int |
getLettersForDist1()
number of letter to enable maxDist=1 (letter level)
|
int |
getLettersForDist2()
number of letter to enable maxDist=2 (letter level)
|
java.util.List<Rule> |
getRule() |
int |
getWordsForDist1()
number of words to enable maxDist=1 (word level)
|
int |
getWordsForDist2()
number of words to enable maxDist=2 (word level)
|
SemanticExtractorConfig |
makeCopy()
Creates and returns a deep copy of this SemanticExtractorConfig.
|
static SemanticExtractorConfig |
readFrom(java.io.InputStream is)
Read this SemanticExtractorConfig from an XML fragment.
|
void |
setLettersForDist1(int lettersForDist1)
number of letter to enable maxDist=1 (letter level)
|
void |
setLettersForDist2(int lettersForDist2)
number of letter to enable maxDist=2 (letter level)
|
void |
setWordsForDist1(int wordsForDist1)
number of words to enable maxDist=1 (word level)
|
void |
setWordsForDist2(int wordsForDist2)
number of words to enable maxDist=2 (word level)
|
java.lang.String |
toString()
String representation of this SemanticExtractorConfig.
|
SemanticExtractorConfig |
withAbstractEntity(AbstractEntity... __values) |
SemanticExtractorConfig |
withAbstractEntity(java.util.Collection<AbstractEntity> __values) |
SemanticExtractorConfig |
withDefine(java.util.Collection<Define> __values) |
SemanticExtractorConfig |
withDefine(Define... __values) |
SemanticExtractorConfig |
withInclude(java.util.Collection<Include> __values) |
SemanticExtractorConfig |
withInclude(Include... __values) |
SemanticExtractorConfig |
withLettersForDist1(int lettersForDist1) |
SemanticExtractorConfig |
withLettersForDist1(java.lang.Integer lettersForDist1) |
SemanticExtractorConfig |
withLettersForDist2(int lettersForDist2) |
SemanticExtractorConfig |
withLettersForDist2(java.lang.Integer lettersForDist2) |
SemanticExtractorConfig |
withModifiedAt(java.lang.Long modifiedAt) |
SemanticExtractorConfig |
withModifiedBy(java.lang.String modifiedBy) |
SemanticExtractorConfig |
withRule(java.util.Collection<Rule> __values) |
SemanticExtractorConfig |
withRule(Rule... __values) |
SemanticExtractorConfig |
withWordsForDist1(int wordsForDist1) |
SemanticExtractorConfig |
withWordsForDist1(java.lang.Integer wordsForDist1) |
SemanticExtractorConfig |
withWordsForDist2(int wordsForDist2) |
SemanticExtractorConfig |
withWordsForDist2(java.lang.Integer wordsForDist2) |
void |
writeTo(java.io.OutputStream os)
Write this SemanticExtractorConfig as an XML fragment
|
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public java.util.List<Include> include
public java.util.List<Define> define
public java.util.List<AbstractEntity> abstractEntity
public java.util.List<Rule> rule
public int lettersForDist1
public static final int DEFAULT_LETTERS_FOR_DIST1
public int lettersForDist2
public static final int DEFAULT_LETTERS_FOR_DIST2
public int wordsForDist1
public static final int DEFAULT_WORDS_FOR_DIST1
public int wordsForDist2
public static final int DEFAULT_WORDS_FOR_DIST2
public SemanticExtractorConfig()
public SemanticExtractorConfig(SemanticExtractorConfig o)
public SemanticExtractorConfig withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class Modifiable
public SemanticExtractorConfig withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class Modifiable
public java.util.List<Include> getInclude()
public SemanticExtractorConfig withInclude(Include... __values)
public SemanticExtractorConfig withInclude(java.util.Collection<Include> __values)
public java.util.List<Define> getDefine()
public SemanticExtractorConfig withDefine(Define... __values)
public SemanticExtractorConfig withDefine(java.util.Collection<Define> __values)
public java.util.List<AbstractEntity> getAbstractEntity()
public SemanticExtractorConfig withAbstractEntity(AbstractEntity... __values)
public SemanticExtractorConfig withAbstractEntity(java.util.Collection<AbstractEntity> __values)
public java.util.List<Rule> getRule()
public SemanticExtractorConfig withRule(Rule... __values)
public SemanticExtractorConfig withRule(java.util.Collection<Rule> __values)
public void setLettersForDist1(int lettersForDist1)
public int getLettersForDist1()
public SemanticExtractorConfig withLettersForDist1(int lettersForDist1)
public SemanticExtractorConfig withLettersForDist1(java.lang.Integer lettersForDist1)
public void setLettersForDist2(int lettersForDist2)
public int getLettersForDist2()
public SemanticExtractorConfig withLettersForDist2(int lettersForDist2)
public SemanticExtractorConfig withLettersForDist2(java.lang.Integer lettersForDist2)
public void setWordsForDist1(int wordsForDist1)
public int getWordsForDist1()
public SemanticExtractorConfig withWordsForDist1(int wordsForDist1)
public SemanticExtractorConfig withWordsForDist1(java.lang.Integer wordsForDist1)
public void setWordsForDist2(int wordsForDist2)
public int getWordsForDist2()
public SemanticExtractorConfig withWordsForDist2(int wordsForDist2)
public SemanticExtractorConfig withWordsForDist2(java.lang.Integer wordsForDist2)
public SemanticExtractorConfig makeCopy()
makeCopy
in class Modifiable
public static SemanticExtractorConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class Modifiable
javax.xml.bind.JAXBException
java.io.IOException
public static SemanticExtractorConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class Modifiable
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class Modifiable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.