Skip to content

Update README and dependencies.#3

Open
MarcCote wants to merge 1 commit intomicrosoft:masterfrom
MarcCote:update_readme_and_dependencies
Open

Update README and dependencies.#3
MarcCote wants to merge 1 commit intomicrosoft:masterfrom
MarcCote:update_readme_and_dependencies

Conversation

@MarcCote
Copy link
Contributor

@MarcCote MarcCote commented Aug 5, 2021

Still need to be tested on more games but so far results can be reproduced for Zork1 and Detective.

def detect(self, observation_text):
# Spacy has trouble detecting entities ending with \n.
# Ref: https://github.com/explosion/spaCy/issues/4792#issuecomment-614295948
observation_text = observation_text.replace("\n", " ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues I found with the latest spacy version.


# Get the first observation from the environment.
obs = env.reset()
obs, info = env.reset()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reflects Jericho's API changes.


# Pass the action to the environment.
new_obs, score, done, info = env.step(action)
new_obs, reward, done, info = env.step(action)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The step method now returns the immediate reward instead of the current score.

@MarcCote MarcCote force-pushed the update_readme_and_dependencies branch from 5206a12 to a695ff4 Compare August 11, 2021 18:10

# Monkey patch to remove warning message in fasttext 0.9.2.
# Ref: https://github.com/facebookresearch/fastText/issues/1067
fasttext.FastText.eprint = lambda x: None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed until 0.9.3 comes out.

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

Successfully merging this pull request may close these issues.

1 participant