PageRenderTime 15ms CodeModel.GetById 2ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/extras.FastStemmer-class.html

http://github.com/apresta/tagger
HTML | 241 lines | 204 code | 15 blank | 22 comment | 0 complexity | eb9f655bec29b68ea6015dbd03bfed3c 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.FastStemmer</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;FastStemmer
 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.FastStemmer-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 FastStemmer</h1><p class="nomargin-top"><span class="codelink"><a href="extras-pysrc.html#FastStemmer">source&nbsp;code</a></span></p>
 61<center>
 62<center>  <map id="class_hierarchy_for_faststemme" name="class_hierarchy_for_faststemme">
 63<area shape="rect" id="node1" href="extras.FastStemmer-class.html" title="FastStemmer" alt="" coords="13,61,120,88"/>
 64<area shape="rect" id="node2" href="tagger.Stemmer-class.html" title="tagger.Stemmer" alt="" coords="5,5,128,32"/>
 65</map>
 66  <img src="class_hierarchy_for_faststemme.gif" alt='' usemap="#class_hierarchy_for_faststemme" ismap="ismap" class="graph-without-title" />
 67</center>
 68</center>
 69<hr />
 70<p>Stemmer subclass that uses a much faster, but less correct 
 71  algorithm</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.FastStemmer-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span><br />
 97      Returns:
 98      a new <a href="tagger.Stemmer-class.html" class="link">Stemmer</a> 
 99      object</td>
100          <td align="right" valign="top">
101            <span class="codelink"><a href="extras-pysrc.html#FastStemmer.__init__">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.Stemmer-class.html">tagger.Stemmer</a></code></b>:
112      <code><a href="tagger.Stemmer-class.html#__call__">__call__</a></code>,
113      <code><a href="tagger.Stemmer-class.html#preprocess">preprocess</a></code>
114      </p>
115    </td>
116  </tr>
117</table>
118<!-- ==================== CLASS VARIABLES ==================== -->
119<a name="section-ClassVariables"></a>
120<table class="summary" border="1" cellpadding="3"
121       cellspacing="0" width="100%" bgcolor="white">
122<tr bgcolor="#70b0f0" class="table-header">
123  <td colspan="2" class="table-header">
124    <table border="0" cellpadding="0" cellspacing="0" width="100%">
125      <tr valign="top">
126        <td align="left"><span class="table-header">Class Variables</span></td>
127        <td align="right" valign="top"
128         ><span class="options">[<a href="#section-ClassVariables"
129         class="privatelink" onclick="toggle_private();"
130         >hide private</a>]</span></td>
131      </tr>
132    </table>
133  </td>
134</tr>
135  <tr>
136    <td colspan="2" class="summary">
137    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="tagger.Stemmer-class.html">tagger.Stemmer</a></code></b>:
138      <code><a href="tagger.Stemmer-class.html#match_contractions">match_contractions</a></code>
139      </p>
140    </td>
141  </tr>
142</table>
143<!-- ==================== METHOD DETAILS ==================== -->
144<a name="section-MethodDetails"></a>
145<table class="details" border="1" cellpadding="3"
146       cellspacing="0" width="100%" bgcolor="white">
147<tr bgcolor="#70b0f0" class="table-header">
148  <td colspan="2" class="table-header">
149    <table border="0" cellpadding="0" cellspacing="0" width="100%">
150      <tr valign="top">
151        <td align="left"><span class="table-header">Method Details</span></td>
152        <td align="right" valign="top"
153         ><span class="options">[<a href="#section-MethodDetails"
154         class="privatelink" onclick="toggle_private();"
155         >hide private</a>]</span></td>
156      </tr>
157    </table>
158  </td>
159</tr>
160</table>
161<a name="__init__"></a>
162<div>
163<table class="details" border="1" cellpadding="3"
164       cellspacing="0" width="100%" bgcolor="white">
165<tr><td>
166  <table width="100%" cellpadding="0" cellspacing="0" border="0">
167  <tr valign="top"><td>
168  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span>
169    <br /><em class="fname">(Constructor)</em>
170  </h3>
171  </td><td align="right" valign="top"
172    ><span class="codelink"><a href="extras-pysrc.html#FastStemmer.__init__">source&nbsp;code</a></span>&nbsp;
173    </td>
174  </tr></table>
175  
176  
177  <dl class="fields">
178    <dt>Parameters:</dt>
179    <dd><ul class="nomargin-top">
180        <li><strong class="pname"><code>stemmer</code></strong> - an object or module with a 'stem' method (defaults to 
181          stemming.porter2)</li>
182    </ul></dd>
183    <dt>Returns:</dt>
184        <dd>a new <a href="tagger.Stemmer-class.html" 
185          class="link">Stemmer</a> object</dd>
186    <dt>Overrides:
187        <a href="tagger.Stemmer-class.html#__init__">tagger.Stemmer.__init__</a>
188        <dd><em class="note">(inherited documentation)</em></dd>
189    </dt>
190  </dl>
191</td></tr></table>
192</div>
193<br />
194<!-- ==================== NAVIGATION BAR ==================== -->
195<table class="navbar" border="0" width="100%" cellpadding="0"
196       bgcolor="#a0c0ff" cellspacing="0">
197  <tr valign="middle">
198
199  <!-- Tree link -->
200      <th>&nbsp;&nbsp;&nbsp;<a
201        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
202
203  <!-- Index link -->
204      <th>&nbsp;&nbsp;&nbsp;<a
205        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
206
207  <!-- Help link -->
208      <th>&nbsp;&nbsp;&nbsp;<a
209        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
210
211  <!-- Project homepage -->
212      <th class="navbar" align="right" width="100%">
213        <table border="0" cellpadding="0" cellspacing="0">
214          <tr><th class="navbar" align="center"
215            ><a class="navbar" target="_top" href="http://github.com/apresta/tagger">tagger</a></th>
216          </tr></table></th>
217  </tr>
218</table>
219<table border="0" cellpadding="0" cellspacing="0" width="100%%">
220  <tr>
221    <td align="left" class="footer">
222    Generated by Epydoc 3.0.1 on Fri May 13 11:13:07 2011
223    </td>
224    <td align="right" class="footer">
225      <a target="mainFrame" href="http://epydoc.sourceforge.net"
226        >http://epydoc.sourceforge.net</a>
227    </td>
228  </tr>
229</table>
230
231<script type="text/javascript">
232  <!--
233  // Private objects are initially displayed (because if
234  // javascript is turned off then we want them to be
235  // visible); but by default, we want to hide them.  So hide
236  // them unless we have a cookie that says to show them.
237  checkCookie();
238  // -->
239</script>
240</body>
241</html>