Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Fixing create_tfrecords.py when using custom tokenizer #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

galloj
Copy link

@galloj galloj commented Mar 17, 2021

Fixing error when loading tokenizer using encoder_path. Also I added some error messages, because all errors which happened because of bad input were mostly unreadable.

I think it would be nice to do some more refactoring on this file too, because I think there will be bad handling of errors in other cases too. Also I had issue when multiple threads were used, then multiple tensorflow instances were initialized at once, which caused that both of them printed at same time, which resulted in letters being printed in random order.

@StellaAthena
Copy link
Member

This looks reasonable, but I haven't been able to test it yet. Just wanted to let you know that I am aware of this PR and it's on the to-do list.

Copy link
Member

@StellaAthena StellaAthena left a comment

Choose a reason for hiding this comment

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

Changes to main have made this PR conflict. Please pull the most recent version and resolve the conflicts on your fork.

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

Successfully merging this pull request may close these issues.

None yet

2 participants