Commit 87316a38a516411c3cde12dac9581e934535c3e1

Authored by Romain Deveaud
1 parent bc18b961bd
Exists in master

more doc

Showing 32 changed files with 1909 additions and 0 deletions Side-by-side Diff

doc/classes/RIR/Corpus.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Class: RIR::Corpus [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Class</strong></td>
  49 + <td class="class-name-in-header">RIR::Corpus</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../../files/lib/rir/corpus_rb.html">
  57 +
  58 + lib/rir/corpus.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + <tr class="top-aligned-row">
  70 + <td><strong>Parent:</strong></td>
  71 + <td>
  72 +
  73 + Object
  74 +
  75 + </td>
  76 + </tr>
  77 +
  78 + </table>
  79 + </div>
  80 + <!-- banner header -->
  81 +
  82 + <div id="bodyContent">
  83 +
  84 + <div id="contextContent">
  85 +
  86 + </div>
  87 +
  88 +
  89 + <div id="method-list">
  90 + <h3 class="section-bar">Methods</h3>
  91 +
  92 + <div class="name-list">
  93 +
  94 + <a href="#M000017">files</a>&nbsp;&nbsp;
  95 +
  96 + <a href="#M000016">new</a>&nbsp;&nbsp;
  97 +
  98 + </div>
  99 + </div>
  100 +
  101 + </div>
  102 +
  103 + <!-- if includes -->
  104 +
  105 + <div id="section">
  106 +
  107 +
  108 +
  109 + <div id="attribute-list">
  110 + <h3 class="section-bar">Attributes</h3>
  111 +
  112 + <div class="name-list">
  113 + <table>
  114 +
  115 + <tr class="top-aligned-row context-row">
  116 + <td class="context-item-name">path</td>
  117 +
  118 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  119 +
  120 + <td class="context-item-desc"></td>
  121 + </tr>
  122 +
  123 + </table>
  124 + </div>
  125 + </div>
  126 +
  127 +
  128 + <!-- if method_list -->
  129 +
  130 + <div id="methods">
  131 +
  132 + <h3 class="section-bar">Public Class methods</h3>
  133 +
  134 +
  135 + <div id="method-M000016" class="method-detail">
  136 + <a name="M000016"></a>
  137 +
  138 + <div class="method-heading">
  139 +
  140 + <a href="Corpus.src/M000016.html" target="Code" class="method-signature"
  141 + onclick="popupCode('Corpus.src/M000016.html');return false;">
  142 +
  143 + <span class="method-name">new</span><span class="method-args">(path)</span>
  144 +
  145 + </a>
  146 +
  147 + </div>
  148 +
  149 + <div class="method-description">
  150 +
  151 + </div>
  152 + </div>
  153 +
  154 +
  155 + <h3 class="section-bar">Public Instance methods</h3>
  156 +
  157 +
  158 + <div id="method-M000017" class="method-detail">
  159 + <a name="M000017"></a>
  160 +
  161 + <div class="method-heading">
  162 +
  163 + <a href="Corpus.src/M000017.html" target="Code" class="method-signature"
  164 + onclick="popupCode('Corpus.src/M000017.html');return false;">
  165 +
  166 + <span class="method-name">files</span><span class="method-args">()</span>
  167 +
  168 + </a>
  169 +
  170 + </div>
  171 +
  172 + <div class="method-description">
  173 +
  174 + <p>
  175 +Recursively outputs all files in <tt>self.path</tt>. WARNING ! This
  176 +function may take a lot of time if many files are in subdirectories.
  177 +</p>
  178 +<pre>
  179 + c = Corpus.new &quot;my/path&quot;
  180 + c.files # =&gt; [&quot;README.txt&quot;, &quot;lib/code.rb&quot;]
  181 +</pre>
  182 +
  183 + </div>
  184 + </div>
  185 +
  186 +
  187 +
  188 + </div>
  189 +
  190 +
  191 +
  192 +
  193 + </div>
  194 +
  195 +<div id="validator-badges">
  196 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  197 +</div>
  198 +
  199 +</body>
  200 +</html>
doc/classes/RIR/Corpus.src/M000016.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>new (RIR::Corpus)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/corpus.rb, line 25</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>)
  12 + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">chomp</span> <span class="ruby-value str">&quot;/&quot;</span>
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/RIR/Corpus.src/M000017.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>files (RIR::Corpus)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/corpus.rb, line 35</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
  12 + <span class="ruby-constant">Dir</span>[<span class="ruby-node">&quot;#{@path}/**/*.*&quot;</span>]
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/RIR/Corpus.src/M000018.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>files (RIR::Corpus)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/corpus.rb, line 36</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
  12 + <span class="ruby-constant">Dir</span>[<span class="ruby-node">&quot;#{@path}/**/*.*&quot;</span>]
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/RIR/Document.src/M000019.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>format_words (RIR::Document)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 31</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_words</span>
  12 + <span class="ruby-identifier">wo</span> = []
  13 +
  14 + <span class="ruby-ivar">@doc_content</span>.<span class="ruby-identifier">split</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span class="ruby-operator">|</span>
  15 + <span class="ruby-identifier">w</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\W/</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sw</span><span class="ruby-operator">|</span>
  16 + <span class="ruby-identifier">wo</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">sw</span>.<span class="ruby-identifier">downcase</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sw</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/[a-zA-Z]/</span>
  17 + <span class="ruby-keyword kw">end</span>
  18 + <span class="ruby-keyword kw">end</span>
  19 +
  20 + <span class="ruby-identifier">wo</span>
  21 + <span class="ruby-keyword kw">end</span></pre>
  22 +</body>
  23 +</html>
doc/classes/RIR/Document.src/M000020.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>ngrams (RIR::Document)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 46</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ngrams</span>(<span class="ruby-identifier">n</span>)
  12 + <span class="ruby-identifier">window</span> = []
  13 + <span class="ruby-identifier">ngrams_array</span> = []
  14 +
  15 + <span class="ruby-ivar">@words</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span class="ruby-operator">|</span>
  16 + <span class="ruby-identifier">window</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">w</span>)
  17 + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">window</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">n</span>
  18 + <span class="ruby-identifier">ngrams_array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">window</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot; &quot;</span>)
  19 + <span class="ruby-identifier">window</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-value">0</span>)
  20 + <span class="ruby-keyword kw">end</span>
  21 + <span class="ruby-keyword kw">end</span>
  22 +
  23 + <span class="ruby-identifier">ngrams_array</span>.<span class="ruby-identifier">uniq</span>
  24 + <span class="ruby-keyword kw">end</span></pre>
  25 +</body>
  26 +</html>
doc/classes/RIR/Document.src/M000021.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>count_words (RIR::Document)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 64</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count_words</span>
  12 + <span class="ruby-identifier">counts</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-value">0</span> }
  13 + <span class="ruby-ivar">@words</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span class="ruby-operator">|</span> <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">w</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> }
  14 +
  15 + <span class="ruby-identifier">counts</span>
  16 + <span class="ruby-keyword kw">end</span></pre>
  17 +</body>
  18 +</html>
doc/classes/RIR/Document.src/M000022.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>entropy (RIR::Document)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 77</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entropy</span>(<span class="ruby-identifier">s</span>)
  12 + <span class="ruby-identifier">en</span> = <span class="ruby-value">0</span><span class="ruby-value">.0</span>
  13 + <span class="ruby-identifier">counts</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">count_words</span>
  14 +
  15 + <span class="ruby-identifier">s</span>.<span class="ruby-identifier">split</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span class="ruby-operator">|</span>
  16 + <span class="ruby-identifier">p_wi</span> = <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">w</span>].<span class="ruby-identifier">to_f</span><span class="ruby-operator">/</span><span class="ruby-ivar">@words</span>.<span class="ruby-identifier">count</span>.<span class="ruby-identifier">to_f</span>
  17 + <span class="ruby-identifier">en</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">p_wi</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">log2</span>(<span class="ruby-identifier">p_wi</span>)
  18 + <span class="ruby-keyword kw">end</span>
  19 +
  20 + <span class="ruby-identifier">en</span> <span class="ruby-operator">*=</span> <span class="ruby-value">-1</span>
  21 + <span class="ruby-identifier">en</span>
  22 + <span class="ruby-keyword kw">end</span></pre>
  23 +</body>
  24 +</html>
doc/classes/RIR/Document.src/M000023.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>new (RIR::Document)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 92</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">content</span>)
  12 + <span class="ruby-ivar">@doc_content</span> = <span class="ruby-identifier">content</span>
  13 + <span class="ruby-ivar">@words</span> = <span class="ruby-identifier">format_words</span>
  14 + <span class="ruby-keyword kw">end</span></pre>
  15 +</body>
  16 +</html>
doc/classes/RIR/Indri.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Module: RIR::Indri [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Module</strong></td>
  49 + <td class="class-name-in-header">RIR::Indri</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../../files/lib/rir/query_rb.html">
  57 +
  58 + lib/rir/query.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + </table>
  70 + </div>
  71 + <!-- banner header -->
  72 +
  73 + <div id="bodyContent">
  74 +
  75 + <div id="contextContent">
  76 +
  77 + </div>
  78 +
  79 +
  80 + </div>
  81 +
  82 + <!-- if includes -->
  83 +
  84 + <div id="section">
  85 +
  86 + <div id="class-list">
  87 + <h3 class="section-bar">Classes and Modules</h3>
  88 +
  89 + Class <a href="Indri/IndriQuery.html" class="link">RIR::Indri::IndriQuery</a><br />
  90 +Class <a href="Indri/Parameters.html" class="link">RIR::Indri::Parameters</a><br />
  91 +
  92 + </div>
  93 +
  94 +
  95 +
  96 +
  97 + <!-- if method_list -->
  98 +
  99 +
  100 +
  101 +
  102 + </div>
  103 +
  104 +<div id="validator-badges">
  105 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  106 +</div>
  107 +
  108 +</body>
  109 +</html>
doc/classes/RIR/Indri/IndriQuery.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Class: RIR::Indri::IndriQuery [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Class</strong></td>
  49 + <td class="class-name-in-header">RIR::Indri::IndriQuery</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../../../files/lib/rir/query_rb.html">
  57 +
  58 + lib/rir/query.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + <tr class="top-aligned-row">
  70 + <td><strong>Parent:</strong></td>
  71 + <td>
  72 +
  73 + <a href="../Query.html">
  74 +
  75 + RIR::Query
  76 +
  77 + </a>
  78 +
  79 + </td>
  80 + </tr>
  81 +
  82 + </table>
  83 + </div>
  84 + <!-- banner header -->
  85 +
  86 + <div id="bodyContent">
  87 +
  88 + <div id="contextContent">
  89 +
  90 + </div>
  91 +
  92 +
  93 + <div id="method-list">
  94 + <h3 class="section-bar">Methods</h3>
  95 +
  96 + <div class="name-list">
  97 +
  98 + <a href="#M000014">new</a>&nbsp;&nbsp;
  99 +
  100 + <a href="#M000015">to_s</a>&nbsp;&nbsp;
  101 +
  102 + </div>
  103 + </div>
  104 +
  105 + </div>
  106 +
  107 + <!-- if includes -->
  108 +
  109 + <div id="section">
  110 +
  111 +
  112 +
  113 + <div id="attribute-list">
  114 + <h3 class="section-bar">Attributes</h3>
  115 +
  116 + <div class="name-list">
  117 + <table>
  118 +
  119 + <tr class="top-aligned-row context-row">
  120 + <td class="context-item-name">id</td>
  121 +
  122 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  123 +
  124 + <td class="context-item-desc"></td>
  125 + </tr>
  126 +
  127 + <tr class="top-aligned-row context-row">
  128 + <td class="context-item-name">params</td>
  129 +
  130 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  131 +
  132 + <td class="context-item-desc"></td>
  133 + </tr>
  134 +
  135 + <tr class="top-aligned-row context-row">
  136 + <td class="context-item-name">query</td>
  137 +
  138 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  139 +
  140 + <td class="context-item-desc"></td>
  141 + </tr>
  142 +
  143 + <tr class="top-aligned-row context-row">
  144 + <td class="context-item-name">rule</td>
  145 +
  146 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  147 +
  148 + <td class="context-item-desc"></td>
  149 + </tr>
  150 +
  151 + </table>
  152 + </div>
  153 + </div>
  154 +
  155 +
  156 + <!-- if method_list -->
  157 +
  158 + <div id="methods">
  159 +
  160 + <h3 class="section-bar">Public Class methods</h3>
  161 +
  162 +
  163 + <div id="method-M000014" class="method-detail">
  164 + <a name="M000014"></a>
  165 +
  166 + <div class="method-heading">
  167 +
  168 + <a href="IndriQuery.src/M000014.html" target="Code" class="method-signature"
  169 + onclick="popupCode('IndriQuery.src/M000014.html');return false;">
  170 +
  171 + <span class="method-name">new</span><span class="method-args">(id,query,params)</span>
  172 +
  173 + </a>
  174 +
  175 + </div>
  176 +
  177 + <div class="method-description">
  178 +
  179 + </div>
  180 + </div>
  181 +
  182 +
  183 + <h3 class="section-bar">Public Instance methods</h3>
  184 +
  185 +
  186 + <div id="method-M000015" class="method-detail">
  187 + <a name="M000015"></a>
  188 +
  189 + <div class="method-heading">
  190 +
  191 + <a href="IndriQuery.src/M000015.html" target="Code" class="method-signature"
  192 + onclick="popupCode('IndriQuery.src/M000015.html');return false;">
  193 +
  194 + <span class="method-name">to_s</span><span class="method-args">()</span>
  195 +
  196 + </a>
  197 +
  198 + </div>
  199 +
  200 + <div class="method-description">
  201 +
  202 + </div>
  203 + </div>
  204 +
  205 +
  206 +
  207 + </div>
  208 +
  209 +
  210 +
  211 +
  212 + </div>
  213 +
  214 +<div id="validator-badges">
  215 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  216 +</div>
  217 +
  218 +</body>
  219 +</html>
doc/classes/RIR/Indri/IndriQuery.src/M000014.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>new (RIR::Indri::IndriQuery)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 62</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>,<span class="ruby-identifier">query</span>,<span class="ruby-identifier">params</span>)
  12 + <span class="ruby-ivar">@params</span> = <span class="ruby-identifier">params</span>
  13 + <span class="ruby-comment cmt"># Here we set the default retrieval model as Language Modeling</span>
  14 + <span class="ruby-comment cmt"># with a Dirichlet smoothing at 2500.</span>
  15 + <span class="ruby-comment cmt"># TODO: maybe a Rule class...</span>
  16 + <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">rule</span> = <span class="ruby-value str">'method:dirichlet,mu:2500'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">rule</span>.<span class="ruby-identifier">nil?</span>
  17 +
  18 + <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
  19 + <span class="ruby-ivar">@query</span> = <span class="ruby-identifier">query</span>
  20 + <span class="ruby-keyword kw">end</span></pre>
  21 +</body>
  22 +</html>
doc/classes/RIR/Indri/IndriQuery.src/M000015.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>to_s (RIR::Indri::IndriQuery)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 73</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
  12 + <span class="ruby-identifier">h</span> = <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">to_s</span>
  13 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;query&gt;\n&quot;</span>
  14 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;number&gt;#{@id}&lt;/number&gt;\n&quot;</span>
  15 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;text&gt;#{@query}&lt;/text&gt;\n&quot;</span>
  16 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;/query&gt;\n&quot;</span>
  17 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;/parameters&gt;&quot;</span>
  18 +
  19 + <span class="ruby-identifier">h</span>
  20 + <span class="ruby-keyword kw">end</span></pre>
  21 +</body>
  22 +</html>
doc/classes/RIR/Indri/IndriQuery.src/M000016.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>to_s (RIR::Indri::IndriQuery)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 74</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
  12 + <span class="ruby-identifier">h</span> = <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">to_s</span>
  13 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;query&gt;\n&quot;</span>
  14 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;number&gt;#{@id}&lt;/number&gt;\n&quot;</span>
  15 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;text&gt;#{@query}&lt;/text&gt;\n&quot;</span>
  16 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;/query&gt;\n&quot;</span>
  17 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;/parameters&gt;&quot;</span>
  18 +
  19 + <span class="ruby-identifier">h</span>
  20 + <span class="ruby-keyword kw">end</span></pre>
  21 +</body>
  22 +</html>
doc/classes/RIR/Indri/Parameters.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Class: RIR::Indri::Parameters [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Class</strong></td>
  49 + <td class="class-name-in-header">RIR::Indri::Parameters</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../../../files/lib/rir/query_rb.html">
  57 +
  58 + lib/rir/query.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + <tr class="top-aligned-row">
  70 + <td><strong>Parent:</strong></td>
  71 + <td>
  72 +
  73 + Object
  74 +
  75 + </td>
  76 + </tr>
  77 +
  78 + </table>
  79 + </div>
  80 + <!-- banner header -->
  81 +
  82 + <div id="bodyContent">
  83 +
  84 + <div id="contextContent">
  85 +
  86 + </div>
  87 +
  88 +
  89 + <div id="method-list">
  90 + <h3 class="section-bar">Methods</h3>
  91 +
  92 + <div class="name-list">
  93 +
  94 + <a href="#M000012">new</a>&nbsp;&nbsp;
  95 +
  96 + <a href="#M000013">to_s</a>&nbsp;&nbsp;
  97 +
  98 + </div>
  99 + </div>
  100 +
  101 + </div>
  102 +
  103 + <!-- if includes -->
  104 +
  105 + <div id="section">
  106 +
  107 +
  108 +
  109 + <div id="attribute-list">
  110 + <h3 class="section-bar">Attributes</h3>
  111 +
  112 + <div class="name-list">
  113 + <table>
  114 +
  115 + <tr class="top-aligned-row context-row">
  116 + <td class="context-item-name">baseline</td>
  117 +
  118 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  119 +
  120 + <td class="context-item-desc"></td>
  121 + </tr>
  122 +
  123 + <tr class="top-aligned-row context-row">
  124 + <td class="context-item-name">corpus</td>
  125 +
  126 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  127 +
  128 + <td class="context-item-desc"></td>
  129 + </tr>
  130 +
  131 + <tr class="top-aligned-row context-row">
  132 + <td class="context-item-name">count</td>
  133 +
  134 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  135 +
  136 + <td class="context-item-desc"></td>
  137 + </tr>
  138 +
  139 + <tr class="top-aligned-row context-row">
  140 + <td class="context-item-name">memory</td>
  141 +
  142 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  143 +
  144 + <td class="context-item-desc"></td>
  145 + </tr>
  146 +
  147 + <tr class="top-aligned-row context-row">
  148 + <td class="context-item-name">offset</td>
  149 +
  150 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  151 +
  152 + <td class="context-item-desc"></td>
  153 + </tr>
  154 +
  155 + <tr class="top-aligned-row context-row">
  156 + <td class="context-item-name">print_docs</td>
  157 +
  158 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  159 +
  160 + <td class="context-item-desc"></td>
  161 + </tr>
  162 +
  163 + <tr class="top-aligned-row context-row">
  164 + <td class="context-item-name">print_query</td>
  165 +
  166 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  167 +
  168 + <td class="context-item-desc"></td>
  169 + </tr>
  170 +
  171 + <tr class="top-aligned-row context-row">
  172 + <td class="context-item-name">rule</td>
  173 +
  174 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  175 +
  176 + <td class="context-item-desc"></td>
  177 + </tr>
  178 +
  179 + <tr class="top-aligned-row context-row">
  180 + <td class="context-item-name">run_id</td>
  181 +
  182 + <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
  183 +
  184 + <td class="context-item-desc"></td>
  185 + </tr>
  186 +
  187 + </table>
  188 + </div>
  189 + </div>
  190 +
  191 +
  192 + <!-- if method_list -->
  193 +
  194 + <div id="methods">
  195 +
  196 + <h3 class="section-bar">Public Class methods</h3>
  197 +
  198 +
  199 + <div id="method-M000012" class="method-detail">
  200 + <a name="M000012"></a>
  201 +
  202 + <div class="method-heading">
  203 +
  204 + <a href="Parameters.src/M000012.html" target="Code" class="method-signature"
  205 + onclick="popupCode('Parameters.src/M000012.html');return false;">
  206 +
  207 + <span class="method-name">new</span><span class="method-args">(corpus,mem=&quot;1g&quot;,count=&quot;1000&quot;,offset=&quot;1&quot;,run_id=&quot;default&quot;,print_query=false,print_docs=false)</span>
  208 +
  209 + </a>
  210 +
  211 + </div>
  212 +
  213 + <div class="method-description">
  214 +
  215 + </div>
  216 + </div>
  217 +
  218 +
  219 + <h3 class="section-bar">Public Instance methods</h3>
  220 +
  221 +
  222 + <div id="method-M000013" class="method-detail">
  223 + <a name="M000013"></a>
  224 +
  225 + <div class="method-heading">
  226 +
  227 + <a href="Parameters.src/M000013.html" target="Code" class="method-signature"
  228 + onclick="popupCode('Parameters.src/M000013.html');return false;">
  229 +
  230 + <span class="method-name">to_s</span><span class="method-args">()</span>
  231 +
  232 + </a>
  233 +
  234 + </div>
  235 +
  236 + <div class="method-description">
  237 +
  238 + </div>
  239 + </div>
  240 +
  241 +
  242 +
  243 + </div>
  244 +
  245 +
  246 +
  247 +
  248 + </div>
  249 +
  250 +<div id="validator-badges">
  251 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  252 +</div>
  253 +
  254 +</body>
  255 +</html>
doc/classes/RIR/Indri/Parameters.src/M000012.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>new (RIR::Indri::Parameters)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 30</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">corpus</span>,<span class="ruby-identifier">mem</span>=<span class="ruby-value str">&quot;1g&quot;</span>,<span class="ruby-identifier">count</span>=<span class="ruby-value str">&quot;1000&quot;</span>,<span class="ruby-identifier">offset</span>=<span class="ruby-value str">&quot;1&quot;</span>,<span class="ruby-identifier">run_id</span>=<span class="ruby-value str">&quot;default&quot;</span>,<span class="ruby-identifier">print_query</span>=<span class="ruby-keyword kw">false</span>,<span class="ruby-identifier">print_docs</span>=<span class="ruby-keyword kw">false</span>)
  12 + <span class="ruby-ivar">@corpus</span> = <span class="ruby-identifier">corpus</span>
  13 + <span class="ruby-ivar">@memory</span> = <span class="ruby-identifier">mem</span>
  14 + <span class="ruby-ivar">@count</span> = <span class="ruby-identifier">count</span>
  15 + <span class="ruby-ivar">@offset</span> = <span class="ruby-identifier">offset</span>
  16 + <span class="ruby-ivar">@run_id</span> = <span class="ruby-identifier">run_id</span>
  17 + <span class="ruby-ivar">@print_query</span> = <span class="ruby-identifier">print_query</span> <span class="ruby-value">? </span><span class="ruby-value str">&quot;true&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;false&quot;</span>
  18 + <span class="ruby-ivar">@print_docs</span> = <span class="ruby-identifier">print_docs</span> <span class="ruby-value">? </span><span class="ruby-value str">&quot;true&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;false&quot;</span>
  19 + <span class="ruby-keyword kw">end</span></pre>
  20 +</body>
  21 +</html>
doc/classes/RIR/Indri/Parameters.src/M000013.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>to_s (RIR::Indri::Parameters)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 40</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
  12 + <span class="ruby-identifier">h</span> = <span class="ruby-value str">&quot;&lt;parameters&gt;\n&quot;</span>
  13 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;memory&gt;#{@memory}&lt;/memory&gt;\n&quot;</span>
  14 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;index&gt;#{@corpus}&lt;/index&gt;\n&quot;</span>
  15 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;count&gt;#{@count}&lt;/count&gt;\n&quot;</span>
  16 + <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@baseline</span>.<span class="ruby-identifier">nil?</span>
  17 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;baseline&gt;#{@baseline}&lt;/baseline&gt;\n&quot;</span>
  18 + <span class="ruby-keyword kw">else</span>
  19 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;rule&gt;#{@rule}&lt;/rule&gt;\n&quot;</span>
  20 + <span class="ruby-keyword kw">end</span>
  21 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;queryOffset&gt;#{@offset}&lt;/queryOffset&gt;\n&quot;</span>
  22 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;runID&gt;#{@run_id}&lt;/runID&gt;\n&quot;</span>
  23 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;printQuery&gt;#{@print_query}&lt;/printQuery&gt;\n&quot;</span>
  24 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;printDocuments&gt;#{@print_docs}&lt;/printDocuments&gt;\n&quot;</span>
  25 +
  26 + <span class="ruby-identifier">h</span>
  27 + <span class="ruby-keyword kw">end</span></pre>
  28 +</body>
  29 +</html>
doc/classes/RIR/Indri/Parameters.src/M000014.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>to_s (RIR::Indri::Parameters)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/query.rb, line 41</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
  12 + <span class="ruby-identifier">h</span> = <span class="ruby-value str">&quot;&lt;parameters&gt;\n&quot;</span>
  13 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;memory&gt;#{@memory}&lt;/memory&gt;\n&quot;</span>
  14 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;index&gt;#{@corpus}&lt;/index&gt;\n&quot;</span>
  15 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;count&gt;#{@count}&lt;/count&gt;\n&quot;</span>
  16 + <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@baseline</span>.<span class="ruby-identifier">nil?</span>
  17 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;baseline&gt;#{@baseline}&lt;/baseline&gt;\n&quot;</span>
  18 + <span class="ruby-keyword kw">else</span>
  19 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;rule&gt;#{@rule}&lt;/rule&gt;\n&quot;</span>
  20 + <span class="ruby-keyword kw">end</span>
  21 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;queryOffset&gt;#{@offset}&lt;/queryOffset&gt;\n&quot;</span>
  22 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;runID&gt;#{@run_id}&lt;/runID&gt;\n&quot;</span>
  23 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;printQuery&gt;#{@print_query}&lt;/printQuery&gt;\n&quot;</span>
  24 + <span class="ruby-identifier">h</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&lt;printDocuments&gt;#{@print_docs}&lt;/printDocuments&gt;\n&quot;</span>
  25 +
  26 + <span class="ruby-identifier">h</span>
  27 + <span class="ruby-keyword kw">end</span></pre>
  28 +</body>
  29 +</html>
doc/classes/RIR/Query.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Class: RIR::Query [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Class</strong></td>
  49 + <td class="class-name-in-header">RIR::Query</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../../files/lib/rir/query_rb.html">
  57 +
  58 + lib/rir/query.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + <tr class="top-aligned-row">
  70 + <td><strong>Parent:</strong></td>
  71 + <td>
  72 +
  73 + Object
  74 +
  75 + </td>
  76 + </tr>
  77 +
  78 + </table>
  79 + </div>
  80 + <!-- banner header -->
  81 +
  82 + <div id="bodyContent">
  83 +
  84 + <div id="contextContent">
  85 +
  86 + </div>
  87 +
  88 +
  89 + </div>
  90 +
  91 + <!-- if includes -->
  92 +
  93 + <div id="section">
  94 +
  95 +
  96 +
  97 +
  98 + <!-- if method_list -->
  99 +
  100 +
  101 +
  102 +
  103 + </div>
  104 +
  105 +<div id="validator-badges">
  106 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  107 +</div>
  108 +
  109 +</body>
  110 +</html>
doc/classes/RIR/WebDocument.src/M000024.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>get_content (RIR::WebDocument)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 105</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_content</span>(<span class="ruby-identifier">url</span>)
  12 + <span class="ruby-identifier">require</span> <span class="ruby-value str">'net/http'</span>
  13 + <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>))
  14 + <span class="ruby-keyword kw">end</span></pre>
  15 +</body>
  16 +</html>
doc/classes/RIR/WebDocument.src/M000025.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>new (RIR::WebDocument)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 112</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">url</span>)
  12 + <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">url</span>
  13 + <span class="ruby-keyword kw">super</span> <span class="ruby-constant">WebDocument</span>.<span class="ruby-identifier">get_content</span>(<span class="ruby-identifier">url</span>).<span class="ruby-identifier">strip_javascripts</span>.<span class="ruby-identifier">strip_stylesheets</span>.<span class="ruby-identifier">strip_xml_tags</span>
  14 + <span class="ruby-keyword kw">end</span></pre>
  15 +</body>
  16 +</html>
doc/classes/RIR/WikipediaPage.src/M000026.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>search_wikipedia_titles (RIR::WikipediaPage)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 125</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">search_wikipedia_titles</span>(<span class="ruby-identifier">name</span>)
  12 + <span class="ruby-identifier">res</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-node">&quot;http://en.wikipedia.org/w/api.php?action=query&amp;list=search&amp;srsearch=#{URI.escape name}&amp;format=xml&quot;</span>)).<span class="ruby-identifier">toutf8</span>).<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'api/query/search'</span>]
  13 +
  14 + <span class="ruby-identifier">res</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'title'</span>] } <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">nil?</span>
  15 + <span class="ruby-keyword kw">end</span></pre>
  16 +</body>
  17 +</html>
doc/classes/RIR/WikipediaPage.src/M000027.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>get_url (RIR::WikipediaPage)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 131</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_url</span>(<span class="ruby-identifier">name</span>)
  12 + <span class="ruby-identifier">atts</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-node">&quot;http://en.wikipedia.org/w/api.php?action=query&amp;titles=#{URI.escape name}&amp;inprop=url&amp;prop=info&amp;format=xml&quot;</span>)).<span class="ruby-identifier">toutf8</span>).<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'api/query/pages/page'</span>].<span class="ruby-identifier">attributes</span>
  13 +
  14 + <span class="ruby-identifier">atts</span>[<span class="ruby-value str">'fullurl'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">atts</span>[<span class="ruby-value str">'missing'</span>].<span class="ruby-identifier">nil?</span>
  15 + <span class="ruby-keyword kw">end</span></pre>
  16 +</body>
  17 +</html>
doc/classes/RIR/WikipediaPage.src/M000028.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>search_homepage (RIR::WikipediaPage)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/document.rb, line 137</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">search_homepage</span>(<span class="ruby-identifier">name</span>)
  12 + <span class="ruby-identifier">title</span> = <span class="ruby-constant">WikipediaPage</span>.<span class="ruby-identifier">search_wikipedia_titles</span> <span class="ruby-identifier">name</span>
  13 +
  14 + <span class="ruby-keyword kw">begin</span>
  15 + <span class="ruby-constant">WikipediaPage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">WikipediaPage</span>.<span class="ruby-identifier">get_url</span> <span class="ruby-identifier">title</span>[<span class="ruby-value">0</span>]) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">title</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">title</span>.<span class="ruby-identifier">empty?</span>
  16 + <span class="ruby-keyword kw">rescue</span>
  17 + <span class="ruby-identifier">puts</span> <span class="ruby-identifier">title</span>[<span class="ruby-value">0</span>]
  18 + <span class="ruby-keyword kw">end</span>
  19 + <span class="ruby-keyword kw">end</span></pre>
  20 +</body>
  21 +</html>
doc/classes/Regexp.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>Class: Regexp [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="classHeader">
  46 + <table class="header-table">
  47 + <tr class="top-aligned-row">
  48 + <td><strong>Class</strong></td>
  49 + <td class="class-name-in-header">Regexp</td>
  50 + </tr>
  51 + <tr class="top-aligned-row">
  52 + <td><strong>In:</strong></td>
  53 + <td>
  54 +
  55 +
  56 + <a href="../files/lib/rir/regexp_rb.html">
  57 +
  58 + lib/rir/regexp.rb
  59 +
  60 + </a>
  61 +
  62 +
  63 + <br />
  64 +
  65 + </td>
  66 + </tr>
  67 +
  68 +
  69 + <tr class="top-aligned-row">
  70 + <td><strong>Parent:</strong></td>
  71 + <td>
  72 +
  73 + Object
  74 +
  75 + </td>
  76 + </tr>
  77 +
  78 + </table>
  79 + </div>
  80 + <!-- banner header -->
  81 +
  82 + <div id="bodyContent">
  83 +
  84 + <div id="contextContent">
  85 +
  86 + <div id="description">
  87 + <p>
  88 +This file is a part of an Information Retrieval oriented Ruby library
  89 +</p>
  90 +<p>
  91 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  92 +</p>
  93 +<p>
  94 +This program is free software: you can redistribute it and/or modify it
  95 +under the terms of the GNU General Public License as published by the Free
  96 +Software Foundation, either version 3 of the License, or (at your option)
  97 +any later version.
  98 +</p>
  99 +<p>
  100 +This program is distributed in the hope that it will be useful, but WITHOUT
  101 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  102 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  103 +more details.
  104 +</p>
  105 +<p>
  106 +You should have received a copy of the GNU General Public License along
  107 +with this program. If not, see <<a
  108 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  109 +</p>
  110 +
  111 + </div>
  112 +
  113 + </div>
  114 +
  115 +
  116 + <div id="method-list">
  117 + <h3 class="section-bar">Methods</h3>
  118 +
  119 + <div class="name-list">
  120 +
  121 + <a href="#M000001">negated</a>&nbsp;&nbsp;
  122 +
  123 + </div>
  124 + </div>
  125 +
  126 + </div>
  127 +
  128 + <!-- if includes -->
  129 +
  130 + <div id="section">
  131 +
  132 +
  133 +
  134 +
  135 + <!-- if method_list -->
  136 +
  137 + <div id="methods">
  138 +
  139 + <h3 class="section-bar">Public Instance methods</h3>
  140 +
  141 +
  142 + <div id="method-M000001" class="method-detail">
  143 + <a name="M000001"></a>
  144 +
  145 + <div class="method-heading">
  146 +
  147 + <a href="Regexp.src/M000001.html" target="Code" class="method-signature"
  148 + onclick="popupCode('Regexp.src/M000001.html');return false;">
  149 +
  150 + <span class="method-name">negated</span><span class="method-args">()</span>
  151 +
  152 + </a>
  153 +
  154 + </div>
  155 +
  156 + <div class="method-description">
  157 +
  158 + </div>
  159 + </div>
  160 +
  161 +
  162 +
  163 + </div>
  164 +
  165 +
  166 +
  167 +
  168 + </div>
  169 +
  170 +<div id="validator-badges">
  171 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  172 +</div>
  173 +
  174 +</body>
  175 +</html>
doc/classes/Regexp.src/M000001.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>negated (Regexp)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/regexp.rb, line 22</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">negated</span>
  12 + <span class="ruby-node">/^((?!#{self}).)*$/</span>
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/String.src/M000010.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>strip_punctuation (String)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/string.rb, line 153</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">strip_punctuation</span>
  12 + <span class="ruby-identifier">dup</span>.<span class="ruby-identifier">strip_punctuation!</span>
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/String.src/M000011.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>extract_xmltags_values (String)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/string.rb, line 161</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract_xmltags_values</span>(<span class="ruby-identifier">tag_name</span>)
  12 + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-node">/&lt;#{tag_name}.*?&gt;(.+?)&lt;\/#{tag_name}&gt;/</span>).<span class="ruby-identifier">flatten</span>
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/classes/String.src/M000012.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>extract_xmltags_values (String)</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  8 +</head>
  9 +<body class="standalone-code">
  10 + <pre><span class="ruby-comment cmt"># File lib/rir/string.rb, line 162</span>
  11 + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract_xmltags_values</span>(<span class="ruby-identifier">tag_name</span>)
  12 + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-node">/&lt;#{tag_name}.*?&gt;(.+?)&lt;\/#{tag_name}&gt;/</span>).<span class="ruby-identifier">flatten</span>
  13 + <span class="ruby-keyword kw">end</span></pre>
  14 +</body>
  15 +</html>
doc/files/lib/rir/corpus_rb.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>File: corpus.rb [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="fileHeader">
  46 + <h1>corpus.rb</h1>
  47 + <table class="header-table">
  48 + <tr class="top-aligned-row">
  49 + <td><strong>Path:</strong></td>
  50 + <td>lib/rir/corpus.rb
  51 +
  52 + </td>
  53 + </tr>
  54 + <tr class="top-aligned-row">
  55 + <td><strong>Last Update:</strong></td>
  56 + <td>2010-11-23 18:20:24 +0100</td>
  57 + </tr>
  58 + </table>
  59 + </div>
  60 + <!-- banner header -->
  61 +
  62 + <div id="bodyContent">
  63 +
  64 + <div id="contextContent">
  65 +
  66 + <div id="description">
  67 + <p>
  68 +This file is a part of an Information Retrieval oriented Ruby library
  69 +</p>
  70 +<p>
  71 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  72 +</p>
  73 +<p>
  74 +This program is free software: you can redistribute it and/or modify it
  75 +under the terms of the GNU General Public License as published by the Free
  76 +Software Foundation, either version 3 of the License, or (at your option)
  77 +any later version.
  78 +</p>
  79 +<p>
  80 +This program is distributed in the hope that it will be useful, but WITHOUT
  81 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  82 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  83 +more details.
  84 +</p>
  85 +<p>
  86 +You should have received a copy of the GNU General Public License along
  87 +with this program. If not, see <<a
  88 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  89 +</p>
  90 +<hr size="1"></hr><p>
  91 +This file is a part of an Information Retrieval oriented Ruby library
  92 +</p>
  93 +<p>
  94 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  95 +</p>
  96 +<p>
  97 +This program is free software: you can redistribute it and/or modify it
  98 +under the terms of the GNU General Public License as published by the Free
  99 +Software Foundation, either version 3 of the License, or (at your option)
  100 +any later version.
  101 +</p>
  102 +<p>
  103 +This program is distributed in the hope that it will be useful, but WITHOUT
  104 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  105 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  106 +more details.
  107 +</p>
  108 +<p>
  109 +You should have received a copy of the GNU General Public License along
  110 +with this program. If not, see <<a
  111 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  112 +</p>
  113 +<hr size="1"></hr><p>
  114 +This file is a part of an Information Retrieval oriented Ruby library
  115 +</p>
  116 +<p>
  117 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  118 +</p>
  119 +<p>
  120 +This program is free software: you can redistribute it and/or modify it
  121 +under the terms of the GNU General Public License as published by the Free
  122 +Software Foundation, either version 3 of the License, or (at your option)
  123 +any later version.
  124 +</p>
  125 +<p>
  126 +This program is distributed in the hope that it will be useful, but WITHOUT
  127 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  128 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  129 +more details.
  130 +</p>
  131 +<p>
  132 +You should have received a copy of the GNU General Public License along
  133 +with this program. If not, see <<a
  134 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  135 +</p>
  136 +
  137 + </div>
  138 +
  139 + </div>
  140 +
  141 +
  142 + </div>
  143 +
  144 + <!-- if includes -->
  145 +
  146 + <div id="section">
  147 +
  148 +
  149 +
  150 +
  151 + <!-- if method_list -->
  152 +
  153 +
  154 +
  155 +
  156 + </div>
  157 +
  158 +<div id="validator-badges">
  159 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  160 +</div>
  161 +
  162 +</body>
  163 +</html>
doc/files/lib/rir/query_rb.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>File: query.rb [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="fileHeader">
  46 + <h1>query.rb</h1>
  47 + <table class="header-table">
  48 + <tr class="top-aligned-row">
  49 + <td><strong>Path:</strong></td>
  50 + <td>lib/rir/query.rb
  51 +
  52 + </td>
  53 + </tr>
  54 + <tr class="top-aligned-row">
  55 + <td><strong>Last Update:</strong></td>
  56 + <td>2010-11-23 18:20:30 +0100</td>
  57 + </tr>
  58 + </table>
  59 + </div>
  60 + <!-- banner header -->
  61 +
  62 + <div id="bodyContent">
  63 +
  64 + <div id="contextContent">
  65 +
  66 + <div id="description">
  67 + <p>
  68 +This file is a part of an Information Retrieval oriented Ruby library
  69 +</p>
  70 +<p>
  71 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  72 +</p>
  73 +<p>
  74 +This program is free software: you can redistribute it and/or modify it
  75 +under the terms of the GNU General Public License as published by the Free
  76 +Software Foundation, either version 3 of the License, or (at your option)
  77 +any later version.
  78 +</p>
  79 +<p>
  80 +This program is distributed in the hope that it will be useful, but WITHOUT
  81 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  82 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  83 +more details.
  84 +</p>
  85 +<p>
  86 +You should have received a copy of the GNU General Public License along
  87 +with this program. If not, see <<a
  88 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  89 +</p>
  90 +
  91 + </div>
  92 +
  93 + </div>
  94 +
  95 +
  96 + </div>
  97 +
  98 + <!-- if includes -->
  99 +
  100 + <div id="section">
  101 +
  102 +
  103 +
  104 +
  105 + <!-- if method_list -->
  106 +
  107 +
  108 +
  109 +
  110 + </div>
  111 +
  112 +<div id="validator-badges">
  113 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  114 +</div>
  115 +
  116 +</body>
  117 +</html>
doc/files/lib/rir/regexp_rb.html
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4 +<head>
  5 + <title>File: regexp.rb [RDoc Documentation]</title>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8 + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  9 + <script type="text/javascript">
  10 + // <![CDATA[
  11 +
  12 + function popupCode( url ) {
  13 + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  14 + }
  15 +
  16 + function toggleCode( id ) {
  17 + if ( document.getElementById )
  18 + elem = document.getElementById( id );
  19 + else if ( document.all )
  20 + elem = eval( "document.all." + id );
  21 + else
  22 + return false;
  23 +
  24 + elemStyle = elem.style;
  25 +
  26 + if ( elemStyle.display != "block" ) {
  27 + elemStyle.display = "block"
  28 + } else {
  29 + elemStyle.display = "none"
  30 + }
  31 +
  32 + return true;
  33 + }
  34 +
  35 + // Make codeblocks hidden by default
  36 + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  37 +
  38 + // ]]>
  39 + </script>
  40 +
  41 +</head>
  42 +<body>
  43 +
  44 +
  45 + <div id="fileHeader">
  46 + <h1>regexp.rb</h1>
  47 + <table class="header-table">
  48 + <tr class="top-aligned-row">
  49 + <td><strong>Path:</strong></td>
  50 + <td>lib/rir/regexp.rb
  51 +
  52 + </td>
  53 + </tr>
  54 + <tr class="top-aligned-row">
  55 + <td><strong>Last Update:</strong></td>
  56 + <td>2010-11-19 11:27:06 +0100</td>
  57 + </tr>
  58 + </table>
  59 + </div>
  60 + <!-- banner header -->
  61 +
  62 + <div id="bodyContent">
  63 +
  64 + <div id="contextContent">
  65 +
  66 + <div id="description">
  67 + <p>
  68 +This file is a part of an Information Retrieval oriented Ruby library
  69 +</p>
  70 +<p>
  71 +Copyright (C) 2010-2011 Romain Deveaud <romain.deveaud@gmail.com>
  72 +</p>
  73 +<p>
  74 +This program is free software: you can redistribute it and/or modify it
  75 +under the terms of the GNU General Public License as published by the Free
  76 +Software Foundation, either version 3 of the License, or (at your option)
  77 +any later version.
  78 +</p>
  79 +<p>
  80 +This program is distributed in the hope that it will be useful, but WITHOUT
  81 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  82 +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  83 +more details.
  84 +</p>
  85 +<p>
  86 +You should have received a copy of the GNU General Public License along
  87 +with this program. If not, see <<a
  88 +href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>>.
  89 +</p>
  90 +
  91 + </div>
  92 +
  93 + </div>
  94 +
  95 +
  96 + </div>
  97 +
  98 + <!-- if includes -->
  99 +
  100 + <div id="section">
  101 +
  102 +
  103 +
  104 +
  105 + <!-- if method_list -->
  106 +
  107 +
  108 +
  109 +
  110 + </div>
  111 +
  112 +<div id="validator-badges">
  113 + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  114 +</div>
  115 +
  116 +</body>
  117 +</html>