Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Problem with CBoW #9

Closed
pnugues opened this issue Nov 29, 2017 · 1 comment
Closed

Problem with CBoW #9

pnugues opened this issue Nov 29, 2017 · 1 comment

Comments

@pnugues
Copy link

pnugues commented Nov 29, 2017

Hello,
I tried your CBoW program and it did not work. I have the latest versions of Anaconda, Keras, and Tensorflow. My machine is a mac.
1/ When opening the Alice text, Python complains that it is not UTF-8. I had to convert this text to be able to read it.
2/ The shape of the labels is not correct. You can correct it with the statement
labels.append([word])
instead of
labels.append(word)

Thank you for putting your code online.
Pierre

nzw0301 added a commit that referenced this issue Dec 3, 2017
- Use UTF-8 text file
- Fix generator function
@nzw0301
Copy link
Owner

nzw0301 commented Dec 3, 2017

@pnugues Thank you for your report.

  1. You are right. This text file was not utf-8. I use utf-8 text file instead of it. Thanks!
  2. I fixed it by another way.

@nzw0301 nzw0301 closed this as completed Dec 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants