inpho / vsm

Vector Space Model Framework developed for InPhO
http://inpho.github.io/vsm
Other
36 stars 14 forks source link

`label_fn` should do something reasonable #158

Open JaimieMurdock opened 7 years ago

JaimieMurdock commented 7 years ago

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'])