Exemplo n.º 1
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="tokenizer")
     self._classname = None
     self._split_chars = " "
     self._punctuation_chars = None
     self._before_concatenation_rule = '.*[ -~]'
     self._after_concatenation_rule = '[ -~].*'
Exemplo n.º 2
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "rest")
     self._host = "0.0.0.0"
     self._port = 80
     self._debug = False
     self._workers = 1
     self._use_api_keys = False
Exemplo n.º 3
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "binaries")
     self._save_binary = False
     self._load_binary = False
     self._binary_filename = None
     self._load_aiml_on_binary_fail = False
     self._dump_to_file = None
Exemplo n.º 4
0
 def __init__(self, service_name):
     BaseConfigurationData.__init__(self, service_name)
     self._classname = None
     self._method = None
     self._host = None
     self._port = None
     self._url = None
Exemplo n.º 5
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="email")
     self._host = None
     self._port = None
     self._username = None
     self._password = None
     self._from_addr = None
Exemplo n.º 6
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="spelling")
     self._classname = None
     self._corpus = None
     self._alphabet = None
     self._check_before = False
     self._check_and_retry = False
Exemplo n.º 7
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="spelling")
     self._classname = None
     self._corpus = None
     self._alphabet = None
     self._check_before = False
     self._check_and_retry = False
Exemplo n.º 8
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="conversations")
     self._max_histories = 100
     self._restore_last_topic = False
     self._initial_topic = "*"
     self._empty_on_start = False
     self._multi_client = False
Exemplo n.º 9
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="nlu")
     self._classname = BrainNluConfiguration.DEFAULT_CLASSNAME
     self._url = BrainNluConfiguration.DEFAULT_URL
     self._apikey = BrainNluConfiguration.DEFAULT_APIKEY
     self._timeout = BrainNluConfiguration.DEFAULT_TIMEOUT
     self._use_file = BrainNluConfiguration.DEFAULT_USE_FILE
     self._max_utterance_length = 0
Exemplo n.º 10
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="conversations")
     self._max_histories = 100
     self._restore_last_topic = False
     self._initial_topic = "*"
     self._type = None
     self._storage = None
     self._empty_on_start = False
Exemplo n.º 11
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="config")

        self._url = 'sqlite:///:memory:'
        self._echo = False
        self._encoding = 'utf-8'
        self._create_db = True
        self._drop_all_first = True
Exemplo n.º 12
0
 def __init__(self):
     self._server = None
     self._port = 5222
     self._xep_0030 = False
     self._xep_0004 = False
     self._xep_0060 = False
     self._xep_0199 = False
     BaseConfigurationData.__init__(self, "xmpp")
Exemplo n.º 13
0
 def __init__(self):
     self.bot_root = BotConfiguration.DEFAULT_ROOT
     self._prompt = BotConfiguration.DEFAULT_PROMPT
     self._default_response = BotConfiguration.DEFAULT_RESPONSE
     self._exit_response = BotConfiguration.DEFAULT_EXIT_RESPONSE
     self._initial_question = BotConfiguration.DEFAULT_INITIAL_QUESTION
     self._override_predicates = BotConfiguration.DEFAULT_OVERRIDE_PREDICATES
     BaseConfigurationData.__init__(self, "bot")
Exemplo n.º 14
0
 def __init__(self):
     self.bot_root               = BotConfiguration.DEFAULT_ROOT
     self._prompt                = BotConfiguration.DEFAULT_PROMPT
     self._default_response      = BotConfiguration.DEFAULT_RESPONSE
     self._exit_response         = BotConfiguration.DEFAULT_EXIT_RESPONSE
     self._initial_question      = BotConfiguration.DEFAULT_INITIAL_QUESTION
     self._override_predicates   = BotConfiguration.DEFAULT_OVERRIDE_PREDICATES
     BaseConfigurationData.__init__(self, "bot")
Exemplo n.º 15
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "defaults")
     self._default_get = "unknown"
     self._default_property = "unknown"
     self._default_map = "unknown"
     if os.name == 'posix':
         self._learn_filename = '/tmp/learnf.aiml'
     elif os.name == 'nt':
         self._learn_filename = 'C:\Windows\Temp\leanf.aiml'
Exemplo n.º 16
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="config")

        self._host = "localhost"
        self._port = 6379
        self._password = None
        self._db = 0
        self._prefix = "programy"
        self._drop_all_first = True
Exemplo n.º 17
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "brain")
     self._overrides = BrainOverridesConfiguration()
     self._defaults = BrainDefaultsConfiguration()
     self._nodes = BrainNodesConfiguration()
     self._binaries = BrainBinariesConfiguration()
     self._files = BrainFilesConfiguration()
     self._services = BrainServicesConfiguration()
     self._security = BrainSecuritiesConfiguration()
     self._oob = BrainOOBSConfiguration()
Exemplo n.º 18
0
 def __init__(self):
     self._polling = False
     self._polling_interval = 0
     self._streaming = False
     self._use_status = False
     self._use_direct_message = False
     self._auto_follow = False
     self._storage = None
     self._storage_location = None
     self._welcome_message = "Thanks for following me."
     BaseConfigurationData.__init__(self, "twitter")
Exemplo n.º 19
0
 def __init__(self):
     self._license_keys = None
     self.bot_root = BotConfiguration.DEFAULT_ROOT
     self._prompt = BotConfiguration.DEFAULT_PROMPT
     self._default_response = BotConfiguration.DEFAULT_RESPONSE
     self._exit_response = BotConfiguration.DEFAULT_EXIT_RESPONSE
     self._initial_question = BotConfiguration.DEFAULT_INITIAL_QUESTION
     self._empty_string = BotConfiguration.DEFAULT_EMPTY_STRING
     self._override_predicates = BotConfiguration.DEFAULT_OVERRIDE_PREDICATES
     self._max_recursion = 100
     BaseConfigurationData.__init__(self, "bot")
Exemplo n.º 20
0
 def __init__(self,
              name="files",
              files=None,
              file=None,
              extension=None,
              directories=False):
     BaseConfigurationData.__init__(self, name)
     self._file = files
     self._files = file
     self._extension = extension
     self._directories = directories
Exemplo n.º 21
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="scheduler")
        self._name = None
        self._debug_level = 0
        self._add_listeners = False
        self._remove_all_jobs = False
        self._blocking = False

        self._jobstore = None
        self._threadpool = None
        self._processpool = None
        self._job_defaults = None
Exemplo n.º 22
0
 def __init__(self, name="responder"):
     BaseConfigurationData.__init__(self, name)
     self._name = "Client Ping Responder"
     self._host = None
     self._port = None
     self._url = None
     self._ssl_cert_file = None
     self._ssl_key_file = None
     self._shutdown = None
     self._register = None
     self._unregister = None
     self._debug = False
Exemplo n.º 23
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="scheduler")
        self._name = None
        self._debug_level = 0
        self._add_listeners = False
        self._remove_all_jobs = False
        self._blocking = False

        self._jobstore = None
        self._threadpool = None
        self._processpool = None
        self._job_defaults = None
Exemplo n.º 24
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="config")

        self._host = "localhost"
        self._port = 6379
        self._password = None
        self._db = 0
        self._prefix = "programy"
        self._drop_all_first = True
        self._expiretime = 2592000  # (60*60*24*30)
        self._username = None
        self._ssl = False
        self._timeout = 1
Exemplo n.º 25
0
 def __init__(self):
     self._license_keys = None
     self._bot_root = BotConfiguration.DEFAULT_ROOT
     self._prompt = BotConfiguration.DEFAULT_PROMPT
     self._default_response = BotConfiguration.DEFAULT_RESPONSE
     self._exit_response = BotConfiguration.DEFAULT_EXIT_RESPONSE
     self._initial_question = BotConfiguration.DEFAULT_INITIAL_QUESTION
     self._empty_string = BotConfiguration.DEFAULT_EMPTY_STRING
     self._override_properties = BotConfiguration.DEFAULT_OVERRIDE_PREDICATES
     self._max_question_recursion = BotConfiguration.DEFAULT_MAX_QUESTION_RECURSION
     self._max_question_timeout = BotConfiguration.DEFAULT_MAX_QUESTION_TIMEOUT
     self._max_search_depth = BotConfiguration.DEFAULT_MAX_SEARCH_DEPTH
     self._max_search_timeout = BotConfiguration.DEFAULT_MAX_SEARCH_TIMEOUT
     self._tab_parse_output = BotConfiguration.DEFAULT_TAB_PARSE_OUTPUT
     self._spelling = BotSpellingConfiguration()
     BaseConfigurationData.__init__(self, "bot")
Exemplo n.º 26
0
    def __init__(self):
        BaseConfigurationData.__init__(self, "files")
        self._aiml_files        = BrainAIMLFileConfiguration()
        self._set_files         = BrainFileConfiguration("sets")
        self._map_files         = BrainFileConfiguration("maps")
        self._rdf_files         = BrainFileConfiguration("rdf")

        self._denormal          = None
        self._normal            = None
        self._gender            = None
        self._person            = None
        self._person2           = None
        self._properties        = None
        self._triples           = None
        self._preprocessors     = None
        self._postprocessors    = None
Exemplo n.º 27
0
    def __init__(self, name="file"):
        BaseConfigurationData.__init__(self, name=name)

        tmpdir = FileStorageConfiguration.get_temp_dir()

        self._categories_storage        = FileStoreConfiguration(dirs=[tmpdir + os.sep + "categories"], extension="aiml", subdirs=True, format="xml", encoding="utf-8", delete_on_start=False)
        self._errors_storage            = FileStoreConfiguration(file=tmpdir + os.sep + "debug/errors.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._duplicates_storage        = FileStoreConfiguration(file=tmpdir + os.sep + "debug/duplicates.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._learnf_storage            = FileStoreConfiguration(dirs=[tmpdir + os.sep + "categories/learnf"], extension="aiml", subdirs=False, format="xml", encoding="utf-8", delete_on_start=False)

        self._conversation_storage      = FileStoreConfiguration(dirs=[tmpdir + os.sep + "conversations"], extension="txt", subdirs=False, format="text", encoding="utf-8", delete_on_start=False)
        
        self._sets_storage = FileStoreConfiguration(dirs=[tmpdir + os.sep + "sets"], extension="txt", subdirs=False, format="text", encoding="utf-8", delete_on_start=False)
        self._maps_storage = FileStoreConfiguration(dirs=[tmpdir + os.sep + "maps"], extension="txt", subdirs=False, format="text", encoding="utf-8", delete_on_start=False)
        self._rdf_storage = FileStoreConfiguration(dirs=[tmpdir + os.sep + "rdfs"], extension="txt", subdirs=True, format="text", encoding="utf-8", delete_on_start=False)

        self._denormal_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/denormal.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._normal_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/normal.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._gender_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/gender.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._person_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/person.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._person2_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/person2.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._regex_storage = FileStoreConfiguration(file=tmpdir + os.sep + "lookups/regex.txt", format="text", encoding="utf-8", delete_on_start=False)

        self._properties_storage = FileStoreConfiguration(file=tmpdir + os.sep + "properties.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._defaults_storage = FileStoreConfiguration(file=tmpdir + os.sep + "defaults.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._variables_storage = FileStoreConfiguration(dirs=[tmpdir + os.sep + "variables"], extension="txt", subdirs=False, format="text", encoding="utf-8", delete_on_start=False)

        self._twitter_storage = FileStoreConfiguration(dirs=[tmpdir + os.sep + "twitter"], extension="txt", subdirs=False, format="text", encoding="utf-8", delete_on_start=False)

        self._spelling_storage = FileStoreConfiguration(file=tmpdir + os.sep + "spelling/corpus.txt", format="text", encoding="utf-8", delete_on_start=False)

        self._license_storage = FileStoreConfiguration(file=tmpdir + os.sep + "licenses/license.keys", format="text", encoding="utf-8", delete_on_start=False)

        self._pattern_nodes_storage = FileStoreConfiguration(file=tmpdir + os.sep + "nodes/pattern_nodes.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._template_nodes_storage = FileStoreConfiguration(file=tmpdir + os.sep + "nodes/template_nodes.txt", format="text", encoding="utf-8", delete_on_start=False)

        self._binaries_storage = FileStoreConfiguration(file=tmpdir + os.sep + "braintree/braintree.bin", format="binary", encoding="utf-8", delete_on_start=False)
        self._braintree_storage = FileStoreConfiguration(file=tmpdir + os.sep + "braintree/braintree.xml", format="xml", encoding="utf-8", delete_on_start=False)

        self._preprocessors_storage = FileStoreConfiguration(file=tmpdir + os.sep + "processing/preprocessors.txt", format="text", encoding="utf-8", delete_on_start=False)
        self._postprocessors_storage = FileStoreConfiguration(file=tmpdir + os.sep + "processing/postprocessors.txt", format="text", encoding="utf-8", delete_on_start=False)

        self._usergroups_storage = FileStoreConfiguration(file=tmpdir + os.sep + "security/usergroups.yaml", format="yaml", encoding="utf-8", delete_on_start=False)

        self._triggers_storage = FileStoreConfiguration(file=tmpdir + os.sep + "triggers.txt", format="text", encoding="utf-8", delete_on_start=False)
Exemplo n.º 28
0
 def __init__(self):
     self._supress_warnings  = BrainConfiguration.DEFAULT_SUPRESS_WARNINGS
     self._allow_system_aiml = BrainConfiguration.DEFAULT_ALLOW_SYSTEM_AIML
     self._allow_learn_aiml  = BrainConfiguration.DEFAULT_ALLOW_LEARN_AIML
     self._allow_learnf_aiml = BrainConfiguration.DEFAULT_ALLOW_LEARNF_AIML
     self._aiml_files        = None
     self._set_files         = None
     self._map_files         = None
     self._denormal          = None
     self._normal            = None
     self._gender            = None
     self._person            = None
     self._person2           = None
     self._predicates        = None
     self._pronouns          = None
     self._properties        = None
     self._triples           = None
     self._preprocessors     = None
     self._postprocessors    = None
     self._services = []
     BaseConfigurationData.__init__(self, "brain")
Exemplo n.º 29
0
 def __init__(self):
     self._supress_warnings  = BrainConfiguration.DEFAULT_SUPRESS_WARNINGS
     self._allow_system_aiml = BrainConfiguration.DEFAULT_ALLOW_SYSTEM_AIML
     self._allow_learn_aiml  = BrainConfiguration.DEFAULT_ALLOW_LEARN_AIML
     self._allow_learnf_aiml = BrainConfiguration.DEFAULT_ALLOW_LEARNF_AIML
     self._aiml_files        = None
     self._set_files         = None
     self._map_files         = None
     self._denormal          = None
     self._normal            = None
     self._gender            = None
     self._person            = None
     self._person2           = None
     self._predicates        = None
     self._pronouns          = None
     self._properties        = None
     self._triples           = None
     self._preprocessors     = None
     self._postprocessors    = None
     self._services = []
     BaseConfigurationData.__init__(self, "brain")
Exemplo n.º 30
0
 def __init__(self, name):
     BaseConfigurationData.__init__(self, name)
Exemplo n.º 31
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="tokenizer")
     self._classname = None
     self._split_chars = " "
Exemplo n.º 32
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="config")

        self._conversation_logger = "conversation"
Exemplo n.º 33
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "overrides")
     self._allow_system_aiml = False
     self._allow_learn_aiml = False
     self._allow_learnf_aiml = False
Exemplo n.º 34
0
 def __init__(self, name):
     BaseConfigurationData.__init__(self, name)
Exemplo n.º 35
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="tokenizer")
     self._classname = None
     self._split_chars = " "
Exemplo n.º 36
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="job_defaults")
     self._coalesce = None
     self._max_instances = None
Exemplo n.º 37
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="redis")
     self._jobs_key = None
     self._run_times_key = None
Exemplo n.º 38
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "test")
Exemplo n.º 39
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="mongo")
     self._collection = None
Exemplo n.º 40
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="jobstore")
     self._name = None
     self._jobstore = None
Exemplo n.º 41
0
 def __init__(self, config_name):
     BaseConfigurationData.__init__(self, name=config_name)
     self._dir = None
Exemplo n.º 42
0
 def __init__(self, service_name):
     BaseConfigurationData.__init__(self, service_name)
     self._classname = None
     self._denied_srai = None
     self._usergroups = None
Exemplo n.º 43
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="redis")
     self._jobs_key = None
     self._run_times_key = None
Exemplo n.º 44
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="sqlalchemy")
     self._url = None
Exemplo n.º 45
0
 def __init__(self, config_name):
     BaseConfigurationData.__init__(self, name=config_name)
     self._host = "localhost"
     self._port = 6379
     self._password = None
     self._prefix = None
Exemplo n.º 46
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="processpool")
     self._max_workers = None
Exemplo n.º 47
0
 def __init__(self):
     self._host = "0.0.0.0"
     self._port = 80
     self._debug = False
     self._use_api_keys = False
     BaseConfigurationData.__init__(self, "rest")