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

Labelled LDA implementation #12

Open
rahulravindran0108 opened this issue Nov 10, 2016 · 1 comment
Open

Labelled LDA implementation #12

rahulravindran0108 opened this issue Nov 10, 2016 · 1 comment

Comments

@rahulravindran0108
Copy link

In your compliment label function, you have used in Labelled LDA - there seems to be an error. Complement Label accepts a label from a list of labels, but it does a for loop in the function. This would get individual characters from a single label. Isn't this wrong ?

for x in label: vec[self.labelmap[x]] = 1.0
@shizi626
Copy link

shizi626 commented Jun 11, 2017

I think the label is a list of string, and each string represents one individual label, so the for loop will get each label string instead of character of one label.
the x in code for x in label: vec[self.labelmap[x]] = 1.0 is similar to

label = ['aloha', 'hello', 'hi']
for x in label: print x

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