PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/extras.NaiveRater-class.html

http://github.com/apresta/tagger
HTML | 216 lines | 180 code | 15 blank | 21 comment | 0 complexity | 11d2c6bd3af5dfcdfcaeb0b4affd12f0 MD5 | raw file
  1<?xml version="1.0" encoding="ascii"?>
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3          "DTD/xhtml1-transitional.dtd">
  4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5<head>
  6  <title>extras.NaiveRater</title>
  7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  8  <script type="text/javascript" src="epydoc.js"></script>
  9</head>
 10
 11<body bgcolor="white" text="black" link="blue" vlink="#204080"
 12      alink="#204080">
 13<!-- ==================== NAVIGATION BAR ==================== -->
 14<table class="navbar" border="0" width="100%" cellpadding="0"
 15       bgcolor="#a0c0ff" cellspacing="0">
 16  <tr valign="middle">
 17
 18  <!-- Tree link -->
 19      <th>&nbsp;&nbsp;&nbsp;<a
 20        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 21
 22  <!-- Index link -->
 23      <th>&nbsp;&nbsp;&nbsp;<a
 24        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
 25
 26  <!-- Help link -->
 27      <th>&nbsp;&nbsp;&nbsp;<a
 28        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 29
 30  <!-- Project homepage -->
 31      <th class="navbar" align="right" width="100%">
 32        <table border="0" cellpadding="0" cellspacing="0">
 33          <tr><th class="navbar" align="center"
 34            ><a class="navbar" target="_top" href="http://github.com/apresta/tagger">tagger</a></th>
 35          </tr></table></th>
 36  </tr>
 37</table>
 38<table width="100%" cellpadding="0" cellspacing="0">
 39  <tr valign="top">
 40    <td width="100%">
 41      <span class="breadcrumbs">
 42        <a href="extras-module.html">Module&nbsp;extras</a> ::
 43        Class&nbsp;NaiveRater
 44      </span>
 45    </td>
 46    <td>
 47      <table cellpadding="0" cellspacing="0">
 48        <!-- hide/show private -->
 49        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
 50    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
 51        <tr><td align="right"><span class="options"
 52            >[<a href="frames.html" target="_top">frames</a
 53            >]&nbsp;|&nbsp;<a href="extras.NaiveRater-class.html"
 54            target="_top">no&nbsp;frames</a>]</span></td></tr>
 55      </table>
 56    </td>
 57  </tr>
 58</table>
 59<!-- ==================== CLASS DESCRIPTION ==================== -->
 60<h1 class="epydoc">Class NaiveRater</h1><p class="nomargin-top"><span class="codelink"><a href="extras-pysrc.html#NaiveRater">source&nbsp;code</a></span></p>
 61<center>
 62<center>  <map id="class_hierarchy_for_naiverater" name="class_hierarchy_for_naiverater">
 63<area shape="rect" id="node1" href="extras.NaiveRater-class.html" title="NaiveRater" alt="" coords="9,61,100,88"/>
 64<area shape="rect" id="node2" href="tagger.Rater-class.html" title="tagger.Rater" alt="" coords="5,5,104,32"/>
 65</map>
 66  <img src="class_hierarchy_for_naiverater.gif" alt='' usemap="#class_hierarchy_for_naiverater" ismap="ismap" class="graph-without-title" />
 67</center>
 68</center>
 69<hr />
 70<p>Rater subclass that jusk ranks single-word tags by their frequency and
 71  weight</p>
 72
 73<!-- ==================== INSTANCE METHODS ==================== -->
 74<a name="section-InstanceMethods"></a>
 75<table class="summary" border="1" cellpadding="3"
 76       cellspacing="0" width="100%" bgcolor="white">
 77<tr bgcolor="#70b0f0" class="table-header">
 78  <td colspan="2" class="table-header">
 79    <table border="0" cellpadding="0" cellspacing="0" width="100%">
 80      <tr valign="top">
 81        <td align="left"><span class="table-header">Instance Methods</span></td>
 82        <td align="right" valign="top"
 83         ><span class="options">[<a href="#section-InstanceMethods"
 84         class="privatelink" onclick="toggle_private();"
 85         >hide private</a>]</span></td>
 86      </tr>
 87    </table>
 88  </td>
 89</tr>
 90<tr>
 91    <td width="15%" align="right" valign="top" class="summary">
 92      <span class="summary-type">&nbsp;</span>
 93    </td><td class="summary">
 94      <table width="100%" cellpadding="0" cellspacing="0" border="0">
 95        <tr>
 96          <td><span class="summary-sig"><a href="extras.NaiveRater-class.html#__call__" class="summary-sig-name">__call__</a>(<span class="summary-sig-arg">self</span>,
 97        <span class="summary-sig-arg">tags</span>)</span><br />
 98      Returns:
 99      a list of unique (multi)tags sorted by relevance</td>
100          <td align="right" valign="top">
101            <span class="codelink"><a href="extras-pysrc.html#NaiveRater.__call__">source&nbsp;code</a></span>
102            
103          </td>
104        </tr>
105      </table>
106      
107    </td>
108  </tr>
109  <tr>
110    <td colspan="2" class="summary">
111    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="tagger.Rater-class.html">tagger.Rater</a></code></b>:
112      <code><a href="tagger.Rater-class.html#__init__">__init__</a></code>,
113      <code><a href="tagger.Rater-class.html#create_multitags">create_multitags</a></code>,
114      <code><a href="tagger.Rater-class.html#rate_tags">rate_tags</a></code>
115      </p>
116    </td>
117  </tr>
118</table>
119<!-- ==================== METHOD DETAILS ==================== -->
120<a name="section-MethodDetails"></a>
121<table class="details" border="1" cellpadding="3"
122       cellspacing="0" width="100%" bgcolor="white">
123<tr bgcolor="#70b0f0" class="table-header">
124  <td colspan="2" class="table-header">
125    <table border="0" cellpadding="0" cellspacing="0" width="100%">
126      <tr valign="top">
127        <td align="left"><span class="table-header">Method Details</span></td>
128        <td align="right" valign="top"
129         ><span class="options">[<a href="#section-MethodDetails"
130         class="privatelink" onclick="toggle_private();"
131         >hide private</a>]</span></td>
132      </tr>
133    </table>
134  </td>
135</tr>
136</table>
137<a name="__call__"></a>
138<div>
139<table class="details" border="1" cellpadding="3"
140       cellspacing="0" width="100%" bgcolor="white">
141<tr><td>
142  <table width="100%" cellpadding="0" cellspacing="0" border="0">
143  <tr valign="top"><td>
144  <h3 class="epydoc"><span class="sig"><span class="sig-name">__call__</span>(<span class="sig-arg">self</span>,
145        <span class="sig-arg">tags</span>)</span>
146    <br /><em class="fname">(Call operator)</em>
147  </h3>
148  </td><td align="right" valign="top"
149    ><span class="codelink"><a href="extras-pysrc.html#NaiveRater.__call__">source&nbsp;code</a></span>&nbsp;
150    </td>
151  </tr></table>
152  
153  
154  <dl class="fields">
155    <dt>Parameters:</dt>
156    <dd><ul class="nomargin-top">
157        <li><strong class="pname"><code>tags</code></strong> - a list of (preferably stemmed) tags</li>
158    </ul></dd>
159    <dt>Returns:</dt>
160        <dd>a list of unique (multi)tags sorted by relevance</dd>
161    <dt>Overrides:
162        <a href="tagger.Rater-class.html#__call__">tagger.Rater.__call__</a>
163        <dd><em class="note">(inherited documentation)</em></dd>
164    </dt>
165  </dl>
166</td></tr></table>
167</div>
168<br />
169<!-- ==================== NAVIGATION BAR ==================== -->
170<table class="navbar" border="0" width="100%" cellpadding="0"
171       bgcolor="#a0c0ff" cellspacing="0">
172  <tr valign="middle">
173
174  <!-- Tree link -->
175      <th>&nbsp;&nbsp;&nbsp;<a
176        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
177
178  <!-- Index link -->
179      <th>&nbsp;&nbsp;&nbsp;<a
180        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
181
182  <!-- Help link -->
183      <th>&nbsp;&nbsp;&nbsp;<a
184        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
185
186  <!-- Project homepage -->
187      <th class="navbar" align="right" width="100%">
188        <table border="0" cellpadding="0" cellspacing="0">
189          <tr><th class="navbar" align="center"
190            ><a class="navbar" target="_top" href="http://github.com/apresta/tagger">tagger</a></th>
191          </tr></table></th>
192  </tr>
193</table>
194<table border="0" cellpadding="0" cellspacing="0" width="100%%">
195  <tr>
196    <td align="left" class="footer">
197    Generated by Epydoc 3.0.1 on Fri May 13 11:13:08 2011
198    </td>
199    <td align="right" class="footer">
200      <a target="mainFrame" href="http://epydoc.sourceforge.net"
201        >http://epydoc.sourceforge.net</a>
202    </td>
203  </tr>
204</table>
205
206<script type="text/javascript">
207  <!--
208  // Private objects are initially displayed (because if
209  // javascript is turned off then we want them to be
210  // visible); but by default, we want to hide them.  So hide
211  // them unless we have a cookie that says to show them.
212  checkCookie();
213  // -->
214</script>
215</body>
216</html>