Skip to content

Commit

Permalink
Merge pull request #98 from forslund/feature/pyee-7
Browse files Browse the repository at this point in the history
Upgrade to the latest version of pyee
  • Loading branch information
forslund authored Jul 7, 2020
2 parents 7b8a743 + 30c3d1d commit 7c1e444
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions adapt/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
__author__ = 'seanfitz'


class IntentDeterminationEngine(pyee.EventEmitter):
class IntentDeterminationEngine(pyee.BaseEventEmitter):
"""
IntentDeterminationEngine
Expand All @@ -45,7 +45,7 @@ def __init__(self, tokenizer=None, trie=None):
example EnglishTokenizer()
trie(Trie): tree of matches to Entites
"""
pyee.EventEmitter.__init__(self)
pyee.BaseEventEmitter.__init__(self)
self.tokenizer = tokenizer or EnglishTokenizer()
self.trie = trie or Trie()
self.regular_expressions_entities = []
Expand Down
4 changes: 2 additions & 2 deletions adapt/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
__author__ = 'seanfitz'


class Parser(pyee.EventEmitter):
class Parser(pyee.BaseEventEmitter):
"""
Coordinate a tagger and expander to yield valid parse results.
"""
def __init__(self, tokenizer, tagger):
pyee.EventEmitter.__init__(self)
pyee.BaseEventEmitter.__init__(self)
self._tokenizer = tokenizer
self._tagger = tagger

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
argparse==1.2.1
pyee==5.0.0
pyee==7.0.1
six>=1.10.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setup(
name = "adapt-parser",
version = "0.3.5",
version = "0.3.6",
author = "Sean Fitzgerald",
author_email = "sean@fitzgeralds.me",
description = ("A text-to-intent parsing framework."),
Expand All @@ -29,7 +29,7 @@
packages = ["adapt", "adapt.tools", "adapt.tools.text"],

install_requires = [
"pyee==5.0.0",
"pyee==7.0.1",
"six>=1.10.0"
]
)

0 comments on commit 7c1e444

Please sign in to comment.