lib/seek/data/search_extraction.rb
#filters out numbers and text declared in a black list
filters out numbers and text declared in a black list
filters out numbers and text declared in a black list
def filter_content content
        blacklist = ["SEEK ID"] 
        content = content - blacklist
        content.reject! do |val|
          val.to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) != nil
        end
        content
      end
def filter_content content blacklist = [ "SEEK ID" ] content = content - blacklist content . reject! do | val | val . to_s . match ( / \A [+-]? \d +?( \. \d +)? \Z / ) != nil end content end
filters out numbers and text declared in a black list
filters out numbers and text declared in a black list
#not yet defined, and should probably be regular expressions #filter out numbers
content