# File scripts/ad.rb, line 26
    def initialize(text, id=nil, cat=nil, fielded_atts={})
      @id = id
      @cat = cat
      @text = text
      @fielded_atts = fielded_atts
      
      # Hash of extracted attributes and their position in the text
      @atts = Hash.new
      
      # Internal field only -- tracks what text has been used,
      # and what it has been used for.
      @text_portions = Hash.new
      
      # Initially, the only text portion is the text itself. 
      init_tp = TextPortion.new(text.strip.squeeze(" "),0)
      @text_portions[0] = init_tp
    end