Commit Graph

5 Commits

Author SHA1 Message Date
Giovanni Campagna cea6092f90 Fix evaluating
- fix loading old config.json files that are missing some parameters
- fix expanding the trained embedding
- add a default context for "almond_with_thingpedia_as_context"
  (to include thingpedia)
- fix handling empty sentences
2019-03-23 17:28:22 -07:00
Giovanni Campagna f40f168f17 Reshuffle code around
Move task specific stuff into tasks/
2019-03-19 11:22:54 -07:00
Giovanni Campagna 02e4d6ddac Prepare for supporting grammar
Use a consistent preprocessing function, provided by the task class,
between server and train/predict, and load the tasks once.
2019-03-19 11:14:32 -07:00
Giovanni Campagna 5989846771 Make use of task classes
And clean up the metric handling code as well
2019-03-19 10:01:45 -07:00
Giovanni Campagna 92aade6a66 Introduce a registry mechanism and a class hierarchy for tasks
Most tasks can be framed as CQA naturally, with the task specific
code living in the dataset code, but some require extra task-specific
handling (IDs, metrics, tokenization, etc.)

In preparation for having even more task specific handling for Almond,
start cleaning up by creating a class for each task.
2019-03-19 09:15:19 -07:00