diff options
Diffstat (limited to 'snips_inference_agl/constants.py')
-rw-r--r-- | snips_inference_agl/constants.py | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/snips_inference_agl/constants.py b/snips_inference_agl/constants.py new file mode 100644 index 0000000..8affd08 --- /dev/null +++ b/snips_inference_agl/constants.py @@ -0,0 +1,74 @@ +from __future__ import unicode_literals + +from pathlib import Path + +# package +ROOT_PATH = Path(__file__).parent.parent +PACKAGE_NAME = "snips_inference_agl" +DATA_PACKAGE_NAME = "data" +DATA_PATH = ROOT_PATH / PACKAGE_NAME / DATA_PACKAGE_NAME +PACKAGE_PATH = ROOT_PATH / PACKAGE_NAME + +# result +RES_INPUT = "input" +RES_INTENT = "intent" +RES_SLOTS = "slots" +RES_INTENT_NAME = "intentName" +RES_PROBA = "probability" +RES_SLOT_NAME = "slotName" +RES_ENTITY = "entity" +RES_VALUE = "value" +RES_RAW_VALUE = "rawValue" +RES_MATCH_RANGE = "range" + +# miscellaneous +AUTOMATICALLY_EXTENSIBLE = "automatically_extensible" +USE_SYNONYMS = "use_synonyms" +SYNONYMS = "synonyms" +DATA = "data" +INTENTS = "intents" +ENTITIES = "entities" +ENTITY = "entity" +ENTITY_KIND = "entity_kind" +RESOLVED_VALUE = "resolved_value" +SLOT_NAME = "slot_name" +TEXT = "text" +UTTERANCES = "utterances" +LANGUAGE = "language" +VALUE = "value" +NGRAM = "ngram" +CAPITALIZE = "capitalize" +UNKNOWNWORD = "unknownword" +VALIDATED = "validated" +START = "start" +END = "end" +BUILTIN_ENTITY_PARSER = "builtin_entity_parser" +CUSTOM_ENTITY_PARSER = "custom_entity_parser" +MATCHING_STRICTNESS = "matching_strictness" +LICENSE_INFO = "license_info" +RANDOM_STATE = "random_state" +BYPASS_VERSION_CHECK = "bypass_version_check" + +# resources +RESOURCES = "resources" +METADATA = "metadata" +STOP_WORDS = "stop_words" +NOISE = "noise" +GAZETTEERS = "gazetteers" +STEMS = "stems" +CUSTOM_ENTITY_PARSER_USAGE = "custom_entity_parser_usage" +WORD_CLUSTERS = "word_clusters" + +# builtin entities +SNIPS_NUMBER = "snips/number" + +# languages +LANGUAGE_DE = "de" +LANGUAGE_EN = "en" +LANGUAGE_ES = "es" +LANGUAGE_FR = "fr" +LANGUAGE_IT = "it" +LANGUAGE_JA = "ja" +LANGUAGE_KO = "ko" +LANGUAGE_PT_BR = "pt_br" +LANGUAGE_PT_PT = "pt_pt" |