refactor topic model

  * add some validation for set_auto_close and spec
  * update_category_topic_count_by