Blame view
main.rb
588 Bytes
7043da90b first commit |
1 |
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), "lib")) |
b3995017e changing the name... |
2 |
require 'mirimiri' |
b3c021397 faster computing ... |
3 |
require "benchmark" |
fd4cb285a doc changes + doc... |
4 |
|
b3995017e changing the name... |
5 |
w = Mirimiri::WikipediaPage.new("http://en.wikipedia.org/wiki/The_Dillinger_Escape_Plan") |
a79a22843 new TreeTagger mo... |
6 7 |
p w.entropy("dillinger escape plan") p w.tf("guitar") |
e0e33fca0 new way of queryi... |
8 9 10 11 |
query = Indri::IndriQuery.new({:query => "dillinger escape plan".sequential_dependence_model, :count => 10}, "-trecFormat=true -printDocuments=true") index = Indri::IndriIndex.new "/mnt/disk1/ClueWeb09_English_1noSpam" s = Indri::IndriPrintedDocuments.new(index.runquery(query).force_encoding("ISO-8859-1").encode("UTF-8")) |