Skip to content

Commit

Permalink
deploy: 75466c3
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed May 23, 2024
1 parent 8bf93c1 commit d61d519
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _modules/mltb2/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ <h1>Source code for mltb2.files</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_result_dir_path</span><span class="o">.</span><span class="n">is_dir</span><span class="p">():</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Faild to create or find result_dir &#39;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">result_dir</span><span class="si">}</span><span class="s2">&#39;!&quot;</span><span class="p">)</span>

<div class="viewcode-block" id="FileBasedRestartableBatchDataProcessor.__len__"><a class="viewcode-back" href="../../api-reference/files.html#mltb2.files.FileBasedRestartableBatchDataProcessor.__len__">[docs]</a> <span class="k">def</span> <span class="fm">__len__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return the number of data records.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">)</span></div>

<span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">_get_uuid_from_filename</span><span class="p">(</span><span class="n">filename</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="n">uuid</span> <span class="o">=</span> <span class="kc">None</span>
Expand Down
12 changes: 12 additions & 0 deletions api-reference/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<li class="toctree-l2"><a class="reference internal" href="fasttext.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">fasttext</span></code></a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#"><code class="xref py py-mod docutils literal notranslate"><span class="pre">files</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#mltb2.files.FileBasedRestartableBatchDataProcessor"><code class="docutils literal notranslate"><span class="pre">FileBasedRestartableBatchDataProcessor</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.__len__"><code class="docutils literal notranslate"><span class="pre">FileBasedRestartableBatchDataProcessor.__len__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.load_data"><code class="docutils literal notranslate"><span class="pre">FileBasedRestartableBatchDataProcessor.load_data()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.read_batch"><code class="docutils literal notranslate"><span class="pre">FileBasedRestartableBatchDataProcessor.read_batch()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.save_batch"><code class="docutils literal notranslate"><span class="pre">FileBasedRestartableBatchDataProcessor.save_batch()</span></code></a></li>
Expand Down Expand Up @@ -131,6 +132,17 @@
</ul>
</dd>
</dl>
<dl class="py method">
<dt class="sig sig-object py" id="mltb2.files.FileBasedRestartableBatchDataProcessor.__len__">
<span class="sig-name descname"><span class="pre">__len__</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.12)"><span class="pre">int</span></a></span></span><a class="reference internal" href="../_modules/mltb2/files.html#FileBasedRestartableBatchDataProcessor.__len__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.__len__" title="Permalink to this definition"></a></dt>
<dd><p>Return the number of data records.</p>
<dl class="field-list simple">
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.12)">int</a></p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="mltb2.files.FileBasedRestartableBatchDataProcessor.load_data">
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">load_data</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">result_dir</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.12)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.List" title="(in Python v3.12)"><span class="pre">List</span></a><span class="p"><span class="pre">[</span></span><a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Dict" title="(in Python v3.12)"><span class="pre">Dict</span></a><span class="p"><span class="pre">[</span></span><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.12)"><span class="pre">str</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Any" title="(in Python v3.12)"><span class="pre">Any</span></a><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="reference internal" href="../_modules/mltb2/files.html#FileBasedRestartableBatchDataProcessor.load_data"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#mltb2.files.FileBasedRestartableBatchDataProcessor.load_data" title="Permalink to this definition"></a></dt>
Expand Down
2 changes: 2 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ <h2 id="_">_</h2>
<li><a href="api-reference/transformers.html#mltb2.transformers.TransformersTokenCounter.__call__">(mltb2.transformers.TransformersTokenCounter method)</a>
</li>
</ul></li>
<li><a href="api-reference/files.html#mltb2.files.FileBasedRestartableBatchDataProcessor.__len__">__len__() (mltb2.files.FileBasedRestartableBatchDataProcessor method)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="api-reference/arangodb.html#mltb2.arangodb.ArangoConnectionManager._arango_client_factory">_arango_client_factory() (mltb2.arangodb.ArangoConnectionManager method)</a>
Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit d61d519

Please sign in to comment.