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

label_fn should do something reasonable #158

Open
JaimieMurdock opened this issue Nov 10, 2017 · 0 comments
Open

label_fn should do something reasonable #158

JaimieMurdock opened this issue Nov 10, 2017 · 0 comments
Assignees

Comments

@JaimieMurdock
Copy link
Member

the label_fn command arguments are undocumented and super obtuse. They take the corpus's metadata object, which may not be the intent of the programmer. This should just be a function that takes a doc id and returns the label - if you use the metadata in the corpus great, but the option should be available to just use a simple dictionary or lambda.

v.doc_entropies(label_fn=lambda x: folder_md[x]['citation'])
@JaimieMurdock JaimieMurdock self-assigned this Nov 10, 2017
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

1 participant