Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsl9 committed Aug 29, 2018
1 parent 3d63dd6 commit 694a230
Show file tree
Hide file tree
Showing 68 changed files with 2,260 additions and 1,396 deletions.
18 changes: 18 additions & 0 deletions docs/html/_modules/data/data_layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ <h1>Source code for data.data_layer</h1><div class="highlight"><pre>
<span class="s1">&#39;batch_size&#39;</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span>
<span class="s1">&#39;shuffle&#39;</span><span class="p">:</span> <span class="nb">bool</span><span class="p">,</span>
<span class="s1">&#39;dtype&#39;</span><span class="p">:</span> <span class="p">[</span><span class="n">tf</span><span class="o">.</span><span class="n">float32</span><span class="p">,</span> <span class="n">tf</span><span class="o">.</span><span class="n">float16</span><span class="p">],</span>
<span class="s1">&#39;interactive&#39;</span><span class="p">:</span> <span class="nb">bool</span><span class="p">,</span>
<span class="p">}</span></div>

<div class="viewcode-block" id="DataLayer.__init__"><a class="viewcode-back" href="../../api-docs/data.html#data.data_layer.DataLayer.__init__">[docs]</a> <span class="nd">@abc</span><span class="o">.</span><span class="n">abstractmethod</span>
Expand Down Expand Up @@ -278,6 +279,23 @@ <h1>Source code for data.data_layer</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span>

<div class="viewcode-block" id="DataLayer.create_interactive_placeholders"><a class="viewcode-back" href="../../api-docs/data.html#data.data_layer.DataLayer.create_interactive_placeholders">[docs]</a> <span class="k">def</span> <span class="nf">create_interactive_placeholders</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;A function that must be defined for data layers that support interactive</span>
<span class="sd"> infer. This function is intended to create placeholders that will be passed</span>
<span class="sd"> to self._input_tensors that will be passed to the model.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>

<div class="viewcode-block" id="DataLayer.create_feed_dict"><a class="viewcode-back" href="../../api-docs/data.html#data.data_layer.DataLayer.create_feed_dict">[docs]</a> <span class="k">def</span> <span class="nf">create_feed_dict</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">model_in</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;A function that must be defined for data layers that support interactive</span>
<span class="sd"> infer. Given input which is an abstract data element to be defined by the</span>
<span class="sd"> data layer. The intended use is for the user to build and pass model_in from</span>
<span class="sd"> the jupyter notebook. Given model_in, the data layer must preprocess the raw</span>
<span class="sd"> data, and create the feed dict that defines the placeholders defined in</span>
<span class="sd"> create_interactive_placeholders().</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">pass</span></div>

<div class="viewcode-block" id="DataLayer.get_size_in_samples"><a class="viewcode-back" href="../../api-docs/data.html#data.data_layer.DataLayer.get_size_in_samples">[docs]</a> <span class="k">def</span> <span class="nf">get_size_in_samples</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Should return the dataset size in samples.</span>
<span class="sd"> That is, the number of objects in the dataset. This method is used to</span>
Expand Down
80 changes: 79 additions & 1 deletion docs/html/_modules/data/speech2text/speech2text.html

Large diffs are not rendered by default.

112 changes: 75 additions & 37 deletions docs/html/_modules/data/text2speech/speech_utils.html

Large diffs are not rendered by default.

329 changes: 245 additions & 84 deletions docs/html/_modules/data/text2speech/text2speech.html

Large diffs are not rendered by default.

142 changes: 92 additions & 50 deletions docs/html/_modules/data/text2text/text2text.html

Large diffs are not rendered by default.

55 changes: 39 additions & 16 deletions docs/html/_modules/decoders/convs2s_decoder.html

Large diffs are not rendered by default.

27 changes: 11 additions & 16 deletions docs/html/_modules/decoders/fc_decoders.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,10 @@ <h1>Source code for decoders.fc_decoders</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="nb">dict</span><span class="p">(</span><span class="n">FullyConnectedTimeDecoder</span><span class="o">.</span><span class="n">get_optional_params</span><span class="p">(),</span> <span class="o">**</span><span class="p">{</span>
<span class="s1">&#39;decoder_library_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="s1">&#39;beam_width&#39;</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span>
<span class="s1">&#39;lm_weight&#39;</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
<span class="s1">&#39;word_count_weight&#39;</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
<span class="s1">&#39;valid_word_count_weight&#39;</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
<span class="s1">&#39;lm_binary_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="s1">&#39;lm_trie_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="s1">&#39;alpha&#39;</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
<span class="s1">&#39;beta&#39;</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
<span class="s1">&#39;lm_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="s1">&#39;trie_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="s1">&#39;alphabet_config_path&#39;</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="p">})</span></div>

Expand All @@ -349,16 +348,14 @@ <h1>Source code for decoders.fc_decoders</h1><div class="highlight"><pre>
<span class="sd"> output text generation. If False, other config parameters are not used.</span>
<span class="sd"> * **decoder_library_path** (string) --- path to the ctc decoder with</span>
<span class="sd"> language model library.</span>
<span class="sd"> * **lm_binary_path** (string) --- path to the language model file.</span>
<span class="sd"> * **lm_trie_path** (string) --- path to the language model trie file.</span>
<span class="sd"> * **lm_path** (string) --- path to the language model file.</span>
<span class="sd"> * **trie_path** (string) --- path to the prefix trie file.</span>
<span class="sd"> * **alphabet_config_path** (string) --- path to the alphabet file.</span>
<span class="sd"> * **beam_width** (int) --- beam width for beam search.</span>
<span class="sd"> * **lm_weight** (float) --- weight that is assigned to language model</span>
<span class="sd"> * **alpha** (float) --- weight that is assigned to language model</span>
<span class="sd"> probabilities.</span>
<span class="sd"> * **word_count_weight** (float) --- weight that is assigned to the</span>
<span class="sd"> * **beta** (float) --- weight that is assigned to the</span>
<span class="sd"> word count.</span>
<span class="sd"> * **valid_word_count_weight** (float) --- weight that is assigned to the</span>
<span class="sd"> valid word count, i.e. words that exist in language model dictionary.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="nb">super</span><span class="p">(</span><span class="n">FullyConnectedCTCDecoder</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">params</span><span class="p">,</span> <span class="n">model</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">mode</span><span class="p">)</span>

Expand All @@ -382,12 +379,10 @@ <h1>Source code for decoders.fc_decoders</h1><div class="highlight"><pre>
<span class="n">decoded_ixs</span><span class="p">,</span> <span class="n">decoded_vals</span><span class="p">,</span> <span class="n">decoded_shapes</span><span class="p">,</span> <span class="n">log_probabilities</span> <span class="o">=</span> <span class="p">(</span>
<span class="n">custom_op_module</span><span class="o">.</span><span class="n">ctc_beam_search_decoder_with_lm</span><span class="p">(</span>
<span class="n">logits</span><span class="p">,</span> <span class="n">sequence_length</span><span class="p">,</span> <span class="n">beam_width</span><span class="o">=</span><span class="n">beam_width</span><span class="p">,</span>
<span class="n">model_path</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;lm_binary_path&#39;</span><span class="p">],</span>
<span class="n">trie_path</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;lm_trie_path&#39;</span><span class="p">],</span>
<span class="n">model_path</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;lm_path&#39;</span><span class="p">],</span> <span class="n">trie_path</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;trie_path&#39;</span><span class="p">],</span>
<span class="n">alphabet_path</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;alphabet_config_path&#39;</span><span class="p">],</span>
<span class="n">lm_weight</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;lm_weight&#39;</span><span class="p">],</span>
<span class="n">word_count_weight</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;word_count_weight&#39;</span><span class="p">],</span>
<span class="n">valid_word_count_weight</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;valid_word_count_weight&#39;</span><span class="p">],</span>
<span class="n">alpha</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;alpha&#39;</span><span class="p">],</span>
<span class="n">beta</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;beta&#39;</span><span class="p">],</span>
<span class="n">top_paths</span><span class="o">=</span><span class="n">top_paths</span><span class="p">,</span> <span class="n">merge_repeated</span><span class="o">=</span><span class="n">merge_repeated</span><span class="p">,</span>
<span class="p">)</span>
<span class="p">)</span>
Expand Down
Loading

0 comments on commit 694a230

Please sign in to comment.