How to use the pyee.BaseEventEmitter.__init__ function in pyee

To help you get started, we’ve selected a few pyee examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MycroftAI / adapt / adapt / engine.py View on Github external
def __init__(self, tokenizer=None, trie=None):
        """
        Initialize the IntentDeterminationEngine

        Args:
            tokenizer(tokenizer) : tokenizer used to break up spoken text
                example EnglishTokenizer()
            trie(Trie): tree of matches to Entites
        """
        pyee.BaseEventEmitter.__init__(self)
        self.tokenizer = tokenizer or EnglishTokenizer()
        self.trie = trie or Trie()
        self.regular_expressions_entities = []
        self._regex_strings = set()
        self.tagger = EntityTagger(self.trie, self.tokenizer, self.regular_expressions_entities)
        self.intent_parsers = []
github MycroftAI / adapt / adapt / parser.py View on Github external
def __init__(self, tokenizer, tagger):
        pyee.BaseEventEmitter.__init__(self)
        self._tokenizer = tokenizer
        self._tagger = tagger