Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About negative sampling method #7

Open
rww94 opened this issue Dec 29, 2018 · 1 comment
Open

About negative sampling method #7

rww94 opened this issue Dec 29, 2018 · 1 comment

Comments

@rww94
Copy link

rww94 commented Dec 29, 2018

I found that the negative samples selected in the negative sampling method here may be the same as the positive example.
//indices = np.random.randint(low=0, high=len(self.table), size=count)
The index value generated by this line of code may be the same as the token

@eduOS
Copy link

eduOS commented Jan 6, 2019

I thought if your vocabulary is large enough that would happen but only happen once in a blue moon.

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

No branches or pull requests

2 participants