Skip to content

Commit f840ab6

Browse files
committed
Correcting the docs
1 parent 151287b commit f840ab6

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

docs/build/doctrees/aspects.doctree

36 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.

docs/build/html/aspects.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ <h2>Characters removal<a class="headerlink" href="#characters-removal" title="Pe
292292
<tbody valign="top">
293293
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
294294
<li><strong>words_percentage</strong> – Percentage of words in a
295-
sentence that should be transformed. Nevertheless, always at
296-
least single word should be transformed..</li>
295+
sentence that should be transformed. If greater than 0,
296+
always at least single word will be transformed.</li>
297297
<li><strong>characters_percentage</strong> – Percentage of characters in a
298-
word that should be transformed. Nevertheless, always at
299-
least single character should be removed.</li>
298+
word that should be transformed. If greater than 0
299+
always at least single character will be transformed.</li>
300300
<li><strong>char</strong> – If specified only that character will be randomly removed.
301301
The specified character can also be a white space.</li>
302302
<li><strong>seed</strong> – Random seed.</li>
@@ -459,7 +459,7 @@ <h2>QWERTY<a class="headerlink" href="#qwerty" title="Permalink to this headline
459459
<dt id="wildnlp.aspects.qwerty.QWERTY">
460460
<em class="property">class </em><code class="descclassname">wildnlp.aspects.qwerty.</code><code class="descname">QWERTY</code><span class="sig-paren">(</span><em>words_percentage=1</em>, <em>characters_percentage=10</em>, <em>seed=42</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/wildnlp/aspects/qwerty.html#QWERTY"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#wildnlp.aspects.qwerty.QWERTY" title="Permalink to this definition"></a></dt>
461461
<dd><p>Bases: <a class="reference internal" href="#wildnlp.aspects.base.Aspect" title="wildnlp.aspects.base.Aspect"><code class="xref py py-class docutils literal notranslate"><span class="pre">wildnlp.aspects.base.Aspect</span></code></a></p>
462-
<p>Simualtes errors made while writing on a QWERTY-type keyboard.
462+
<p>Simulates errors made while writing on a QWERTY-type keyboard.
463463
Characters are swapped with their neighbors on the keyboard.</p>
464464
<div class="admonition caution">
465465
<p class="first admonition-title">Caution</p>
@@ -474,11 +474,11 @@ <h2>QWERTY<a class="headerlink" href="#qwerty" title="Permalink to this headline
474474
<tbody valign="top">
475475
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
476476
<li><strong>words_percentage</strong> – Percentage of words in a
477-
sentence that should be transformed. Nevertheless, always at
478-
least single word should be transformed..</li>
477+
sentence that should be transformed. If greater than 0,
478+
always at least single word will be transformed.</li>
479479
<li><strong>characters_percentage</strong> – Percentage of characters in a
480-
word that should be transformed. Nevertheless, always at
481-
least single character should be transformed.</li>
480+
word that should be transformed. If greater than 0
481+
always at least single character will be transformed.</li>
482482
<li><strong>seed</strong> – Random seed.</li>
483483
</ul>
484484
</td>

docs/build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wildnlp/aspects/qwerty.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class QWERTY(Aspect):
9-
"""Simualtes errors made while writing on a QWERTY-type keyboard.
9+
"""Simulates errors made while writing on a QWERTY-type keyboard.
1010
Characters are swapped with their neighbors on the keyboard.
1111
1212
.. caution:: Uses random numbers, default seed is 42.
@@ -17,12 +17,12 @@ def __init__(self, words_percentage=1, characters_percentage=10,
1717
"""
1818
1919
:param words_percentage: Percentage of words in a
20-
sentence that should be transformed. Nevertheless, always at
21-
least single word should be transformed..
20+
sentence that should be transformed. If greater than 0,
21+
always at least single word will be transformed.
2222
2323
:param characters_percentage: Percentage of characters in a
24-
word that should be transformed. Nevertheless, always at
25-
least single character should be transformed.
24+
word that should be transformed. If greater than 0
25+
always at least single character will be transformed.
2626
2727
:param seed: Random seed.
2828
"""

wildnlp/aspects/remove_char.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def __init__(self, char=None, words_percentage=50,
1717
"""
1818
1919
:param words_percentage: Percentage of words in a
20-
sentence that should be transformed. Nevertheless, always at
21-
least single word should be transformed..
20+
sentence that should be transformed. If greater than 0,
21+
always at least single word will be transformed.
2222
2323
:param characters_percentage: Percentage of characters in a
24-
word that should be transformed. Nevertheless, always at
25-
least single character should be removed.
24+
word that should be transformed. If greater than 0
25+
always at least single character will be transformed.
2626
2727
:param char: If specified only that character will be randomly removed.
2828
The specified character can also be a white space.

0 commit comments

Comments
 (0)