Blame view

main.rb 400 Bytes
7043da90b   Romain Deveaud   first commit
1
2
3
  $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), "lib"))
  
  require 'rir'
fd4cb285a   Romain Deveaud   doc changes + doc...
4
5
6
7
8
  
  w = RIR::WikipediaPage.new("http://en.wikipedia.org/wiki/The_Dillinger_Escape_Plan")
  p w.entropy("guitar")
  
  params = RIR::Indri::Parameters.new("path_vers_mon_index")
fd4cb285a   Romain Deveaud   doc changes + doc...
9
10
  q = RIR::Indri::IndriQuery.new("pouet", "bla", params)
  puts q
145387519   Romain Deveaud   new stuff with wi...
11
12
13
  
  c = RIR::Corpus.new "/home/romain/INEX/BookTrack/corpus/"
  puts c.files.size