Skip to content
chalchuck edited this page Nov 7, 2014 · 2 revisions

The tagging module is used to label data-sets by setting a question and corresponding answers. It provides an interface for sampling data and continuously labeling the data.

How to configure the Data Tagger in Ruby on Rails

Tagging Procedure

  1. Open the TweetAnswer class

  2. Add a belongs to call to the model you want to tag

    Add a reference in the tweet_answer class to the tagged record ex: disqus_forum_comment_id Example: belongs_to :disqus_forum_comment

  3. Create a join table and name it modelname_answer

    ex. disqus_answers

     Add this associations to the class
    

    belongs_to :disqus_forum_comment belongs_to :answer

  4. Add this to the TweetAnswer class

    • has_many :modelname_answers
    • has_many :modelname_comments, through: :modelname_answers