PageRenderTime 113ms CodeModel.GetById 79ms app.highlight 22ms RepoModel.GetById 1ms app.codeStats 1ms

/doc/tagger.extras.NaiveRater-class.html

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