Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Error in kb.py #168

Closed
my-master opened this issue Apr 5, 2018 · 0 comments
Closed

Memory Error in kb.py #168

my-master opened this issue Apr 5, 2018 · 0 comments
Assignees

Comments

@my-master
Copy link
Contributor

my-master commented Apr 5, 2018

Class KnowledgeBaseEntityNormalizer , line 95:

 def normalize(self, key, tokens):
        utter = ' '.join(tokens)
        for entity, value in self.kb([key])[0]:
            utter = utter.replace(' '.join(value), entity)
        return utter.split()

Memory leak when value=[] leads to Memory Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants