# File raramorph.rb, line 497 def self.execute(input_filename, output_filename ,verbose = false, not_arabic = true) @output_stream = true @not_arabic = not_arabic @verbose = verbose # Lines processed @lines_counter = 0 # Arabic tokens processed @not_arabic_tokens_counter = 0 # Not arabic tokens processed @not_arabic_tokens_counter = 0 # Arabic words which have been succesfully analyzed. # * [key] = word # * [value] = occurences # @found = {} # Arabic words which have not been succesfully analyzed. # * [key] = word # * [value] = occurences # @not_found = {} @stream = StringIO.new analyze(input_filename , @not_arabic) File.open(output_filename , "w") do |f| f.puts @stream.string end print_stats end