I noticed that categories with hyphenated names, like film-tv cannot be accessed as attributes since hyphens are not valid in attribute names. :(
This pr alters the attribute creation process, replacing hyphens with underscores for valid attribute names. It doesn't "underscorify" category names listed by get_category(), however, as that works as expected.
looks good! (disregard the travis failure, I'll look into separately). now let's just hope that no one adds a new corpora category where the distinction between - and _ is important :)
Thanks for this library, it's tons of fun.
I noticed that categories with hyphenated names, like film-tv cannot be accessed as attributes since hyphens are not valid in attribute names. :(
This pr alters the attribute creation process, replacing hyphens with underscores for valid attribute names. It doesn't "underscorify" category names listed by
get_category()
, however, as that works as expected.Wasn't sure if this was worth a readme update.