public class DictionaryData
A dictionary model used for predefined values entities.
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()
A dictionary model used for predefined values entities.
public int hashCode()
A dictionary model used for predefined values entities.
public boolean equals(@Nullable
java.lang.Object p)
A dictionary model used for predefined values entities.