Bookworm-project / BookwormDB

Tools for text tokenization and encoding
MIT License
84 stars 12 forks source link

Write a script which reads the fields spec and metadata and outputs new metadata and fields with cyclical time fields #9

Closed billyjanitsch closed 12 years ago

bmschmidt commented 12 years ago

See the comment on imputing gender: this should be part of a general scheme for allowing the addition of derived fields.

Probably the thing to do is have a single key, "derived", allowed in any given field definition that would allow creation of derived cyclical time fields, derived gender fields, and anything else we might think of later. (For example, if we decided to leverage freebase more, it could involve looking up any sort of data there and pulling it out).

bmschmidt commented 12 years ago

Almost done! We need to shift so that day_cycle produces results from 1 to 365, and then hook it up with the issue about names so that the displayed names aren't so ugly.

bmschmidt commented 12 years ago

One more request on this one: if at all possible and relevant, we should always include an option that lists the year as an integer, not the crazy 680000 format--that will make a lot of API queries much easier for everyone.

bmschmidt commented 12 years ago

OK, this is done--opening new issue for documenting this.