Skip to content

Commit

Permalink
ParlAI Base class fix (#180)
Browse files Browse the repository at this point in the history
* Fix invalid reference in ParlaiBot class init

* Remove `self.log` from `ParlaiBot` to be compatible with `ChatBotABC` property

---------

Co-authored-by: Daniel McKnight <daniel@neon.ai>
  • Loading branch information
NeonDaniel and NeonDaniel authored Dec 1, 2023
1 parent 508f574 commit 2c04041
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chatbot_core/parlai.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# China Patent: CN102017585 - Europe Patent: EU2156652 - Patents Pending
from abc import abstractmethod
from threading import Event, Thread
from neon_utils.logger import LOG

import spacy

Expand All @@ -36,7 +35,6 @@ def __init__(self, interactive_script, response_timeout=25,
:param done_string: string that signals about episode done
:param exit_string: string that signals about the finish
"""
self.log = LOG.create_logger('parlai_logger')
self.nlp_engine = spacy.load("en_core_web_sm")

self.agent_id = 'local_agent'
Expand Down

0 comments on commit 2c04041

Please sign in to comment.