Skip to content

Conversation

@QtRoS
Copy link

@QtRoS QtRoS commented Jan 22, 2018

No description provided.

embedding_list = []
with open(file_path) as f:
for row in tqdm.tqdm(f.read().split("\n")[1:-1]):
for row in tqdm.tqdm(f.readlines()[1:-1]):

Choose a reason for hiding this comment

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

Agree. The original code might induce OS Error when reading large embedding file on OSX.

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.

2 participants