public class DictionaryData
A dictionary model used for predefined values entities.
| Constructor and Description |
|---|
DictionaryData(java.lang.String namespace,
java.lang.String entityName,
java.util.List<ai.tock.nlp.core.PredefinedValue> values,
boolean onlyValues,
double minDistance,
boolean textSearch)
A dictionary model used for predefined values entities.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
The namespace of the entity.
|
java.lang.String |
component2()
The name of the entity.
|
java.util.List<ai.tock.nlp.core.PredefinedValue> |
component3()
The values of the dictionary.
|
boolean |
component4()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance
|
double |
component5()
The minimum distance to be allowed.
|
boolean |
component6()
If the text is contained by at least one label,
|
DictionaryData |
copy(java.lang.String namespace,
java.lang.String entityName,
java.util.List<ai.tock.nlp.core.PredefinedValue> values,
boolean onlyValues,
double minDistance,
boolean textSearch)
A dictionary model used for predefined values entities.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getEntityName()
The name of the entity.
|
java.util.Map<ai.tock.nlp.core.PredefinedValue,java.util.List> |
getLabelsMap(java.util.Locale locale)
Returns a
class PredefinedValue -> list of labels map for the specified locale. |
double |
getMinDistance()
The minimum distance to be allowed.
|
java.lang.String |
getNamespace()
The namespace of the entity.
|
boolean |
getOnlyValues()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance
|
java.lang.String |
getQualifiedName() |
boolean |
getTextSearch()
If the text is contained by at least one label,
|
java.util.List<ai.tock.nlp.core.PredefinedValue> |
getValues()
The values of the dictionary.
|
int |
hashCode() |
java.lang.String |
toString() |
public DictionaryData(@NotNull
java.lang.String namespace,
@NotNull
java.lang.String entityName,
@NotNull
java.util.List<ai.tock.nlp.core.PredefinedValue> values,
boolean onlyValues,
double minDistance,
boolean textSearch)
A dictionary model used for predefined values entities.
namespace - The namespace of the entity.entityName - The name of the entity.values - The values of the dictionary.onlyValues - Are only defined labels allowed or can we try to use Damerau-Levenshtein distance ?minDistance - The minimum distance to be allowed.textSearch - If the text is contained by at least one label, the value is eligible.@NotNull
public java.util.Map<ai.tock.nlp.core.PredefinedValue,java.util.List> getLabelsMap(@NotNull
java.util.Locale locale)
Returns a class PredefinedValue -> list of labels map for the specified locale.
class PredefinedValue,
locale@NotNull public java.lang.String getQualifiedName()
@NotNull public java.lang.String getNamespace()
The namespace of the entity.
@NotNull public java.lang.String getEntityName()
The name of the entity.
@NotNull public java.util.List<ai.tock.nlp.core.PredefinedValue> getValues()
The values of the dictionary.
public boolean getOnlyValues()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance
?
public double getMinDistance()
The minimum distance to be allowed.
public boolean getTextSearch()
If the text is contained by at least one label,
the value is eligible.
@NotNull public java.lang.String component1()
The namespace of the entity.
@NotNull public java.lang.String component2()
The name of the entity.
@NotNull public java.util.List<ai.tock.nlp.core.PredefinedValue> component3()
The values of the dictionary.
public boolean component4()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance
?
public double component5()
The minimum distance to be allowed.
public boolean component6()
If the text is contained by at least one label,
the value is eligible.
@NotNull public DictionaryData copy(@NotNull java.lang.String namespace, @NotNull java.lang.String entityName, @NotNull java.util.List<ai.tock.nlp.core.PredefinedValue> values, boolean onlyValues, double minDistance, boolean textSearch)
A dictionary model used for predefined values entities.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)