예제 #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 = '[ -~].*'
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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")
예제 #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")
예제 #14
0
파일: bot.py 프로젝트: Doshmaku/program-y
 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")
예제 #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'
예제 #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
예제 #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()
예제 #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")
예제 #19
0
파일: bot.py 프로젝트: dkamotsky/program-y
 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")
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #25
0
파일: bot.py 프로젝트: acondori/program-y
 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")
예제 #26
0
파일: files.py 프로젝트: acondori/program-y
    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
예제 #27
0
파일: config.py 프로젝트: ananthc/program-y
    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)
예제 #28
0
파일: brain.py 프로젝트: Doshmaku/program-y
 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")
예제 #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")
예제 #30
0
 def __init__(self, name):
     BaseConfigurationData.__init__(self, name)
예제 #31
0
파일: tokenizer.py 프로젝트: lilnana00/3ddd
 def __init__(self):
     BaseConfigurationData.__init__(self, name="tokenizer")
     self._classname = None
     self._split_chars = " "
예제 #32
0
    def __init__(self):
        BaseConfigurationData.__init__(self, name="config")

        self._conversation_logger = "conversation"
예제 #33
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "overrides")
     self._allow_system_aiml = False
     self._allow_learn_aiml = False
     self._allow_learnf_aiml = False
예제 #34
0
파일: section.py 프로젝트: Freiza/program-y
 def __init__(self, name):
     BaseConfigurationData.__init__(self, name)
예제 #35
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="tokenizer")
     self._classname = None
     self._split_chars = " "
예제 #36
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="job_defaults")
     self._coalesce = None
     self._max_instances = None
예제 #37
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="redis")
     self._jobs_key = None
     self._run_times_key = None
예제 #38
0
 def __init__(self):
     BaseConfigurationData.__init__(self, "test")
예제 #39
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="mongo")
     self._collection = None
예제 #40
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="jobstore")
     self._name = None
     self._jobstore = None
예제 #41
0
 def __init__(self, config_name):
     BaseConfigurationData.__init__(self, name=config_name)
     self._dir = None
예제 #42
0
 def __init__(self, service_name):
     BaseConfigurationData.__init__(self, service_name)
     self._classname = None
     self._denied_srai = None
     self._usergroups = None
예제 #43
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="redis")
     self._jobs_key = None
     self._run_times_key = None
예제 #44
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="sqlalchemy")
     self._url = None
예제 #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
예제 #46
0
 def __init__(self):
     BaseConfigurationData.__init__(self, name="processpool")
     self._max_workers = None
예제 #47
0
파일: rest.py 프로젝트: Doshmaku/program-y
 def __init__(self):
     self._host = "0.0.0.0"
     self._port = 80
     self._debug = False
     self._use_api_keys = False
     BaseConfigurationData.__init__(self, "rest")