Skip to content

Commit 0256450

Browse files
committed
Merge pull request lisa-lab#52 from lisa-lab/fix_snippets
Do not consider "literalinclude" a code block
2 parents e36cad4 + 35ce537 commit 0256450

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/rnnslu.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Context window
126126

127127
Given a sentence i.e. an array of indexes, and a window size i.e. 1,3,5,..., we
128128
need to convert each word in the sentence to a context window surrounding this
129-
particular word. In details, we have::
129+
particular word. In details, we have:
130130

131131
.. literalinclude:: ../code/rnnslu.py
132132
:start-after: start-snippet-1
@@ -235,37 +235,37 @@ The **hyperparameters** define the whole architecture:
235235
* number of classes
236236
* random seed + way to initialize the model
237237

238-
It gives the following code::
238+
It gives the following code:
239239

240240
.. literalinclude:: ../code/rnnslu.py
241241
:start-after: start-snippet-2
242242
:end-before: end-snippet-2
243243

244-
Then we integrate the way to build the input from the embedding matrix::
244+
Then we integrate the way to build the input from the embedding matrix:
245245

246246
.. literalinclude:: ../code/rnnslu.py
247247
:start-after: start-snippet-3
248248
:end-before: end-snippet-3
249249

250-
We use the scan operator to construct the recursion, works like a charm::
250+
We use the scan operator to construct the recursion, works like a charm:
251251

252252
.. literalinclude:: ../code/rnnslu.py
253253
:start-after: start-snippet-4
254254
:end-before: end-snippet-4
255255

256-
Theano will then compute all the gradients automatically to maximize the log-likelihood::
256+
Theano will then compute all the gradients automatically to maximize the log-likelihood:
257257

258258
.. literalinclude:: ../code/rnnslu.py
259259
:start-after: start-snippet-5
260260
:end-before: end-snippet-5
261261

262-
Next compile those functions::
262+
Next compile those functions:
263263

264264
.. literalinclude:: ../code/rnnslu.py
265265
:start-after: start-snippet-6
266266
:end-before: end-snippet-6
267267

268-
We keep the word embeddings on the unit sphere by normalizing them after each update::
268+
We keep the word embeddings on the unit sphere by normalizing them after each update:
269269

270270
.. literalinclude:: ../code/rnnslu.py
271271
:start-after: start-snippet-7

0 commit comments

Comments
 (0)