Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Modify dictionary load to only rstrip to handle space prefixed tokens #3613

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

ankitade
Copy link
Contributor

Patch description
If special tokens are prefixed by space, while loading them from the dict for eval, the space was being stripped out. Modifying the strip to be rstrip and strip only line breaks

Testing steps
Will wait for CI tests to pass

@stephenroller
Copy link
Contributor

Whyyyy didn't this run any tests?

Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

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

Great

@ankitade ankitade merged commit 8e541e0 into master Apr 22, 2021
@ankitade ankitade deleted the dict_load_fix branch April 22, 2021 17:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants