Package ai.tock.nlp.core
Class DictionaryData
-
- All Implemented Interfaces:
public final class DictionaryDataA dictionary model used for predefined values entities.
-
-
Field Summary
Fields Modifier and Type Field Description private final transient StringqualifiedNameprivate final Stringnamespaceprivate final StringentityNameprivate final List<PredefinedValue>valuesprivate final BooleanonlyValuesprivate final DoubleminDistanceprivate final BooleantextSearch
-
Constructor Summary
Constructors Constructor Description DictionaryData(String namespace, String entityName, List<PredefinedValue> values, Boolean onlyValues, Double minDistance, Boolean textSearch)
-
Method Summary
Modifier and Type Method Description final StringgetQualifiedName()final StringgetNamespace()The namespace of the entity. final StringgetEntityName()The name of the entity. final List<PredefinedValue>getValues()The values of the dictionary. final BooleangetOnlyValues()Are only defined labels allowed or can we try to use Damerau-Levenshtein distance ? final DoublegetMinDistance()The minimum distance to be allowed. final BooleangetTextSearch()If the text is contained by at least one label, the value is eligible. final Map<PredefinedValue, List<String>>getLabelsMap(Locale locale)Returns a PredefinedValue -> list of labels map for the specified locale. -
-
Method Detail
-
getQualifiedName
final String getQualifiedName()
-
getNamespace
final String getNamespace()
The namespace of the entity.
-
getEntityName
final String getEntityName()
The name of the entity.
-
getValues
final List<PredefinedValue> getValues()
The values of the dictionary.
-
getOnlyValues
final Boolean getOnlyValues()
Are only defined labels allowed or can we try to use Damerau-Levenshtein distance ?
-
getMinDistance
final Double getMinDistance()
The minimum distance to be allowed.
-
getTextSearch
final Boolean getTextSearch()
If the text is contained by at least one label, the value is eligible.
-
getLabelsMap
final Map<PredefinedValue, List<String>> getLabelsMap(Locale locale)
Returns a PredefinedValue -> list of labels map for the specified locale.
-
-
-
-