Skip to content

Commit dcc74fb

Browse files
committed
Update docs\source\
1 parent e5d8336 commit dcc74fb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def __init__(self, **options):
243243
244244
\clearpage
245245
\pagenumbering{arabic}
246-
''' % (project,
246+
''' % (__project__,
247247
__description__.rstrip('.'),
248248
release,
249249
__author__,
@@ -269,6 +269,8 @@ def __init__(self, **options):
269269
\linespread{1.05}
270270
\renewcommand{\sfdefault}{pplj}
271271
\newunicodechar{≤}{\ensuremath{\leq}}
272+
\newunicodechar{≈}{\ensuremath{\approx}}
273+
\newunicodechar{≥}{\ensuremath{\geq}}
272274
\IfFileExists{zlmtt.sty}
273275
{\usepackage[light,scaled=1.05]{zlmtt}}
274276
{\renewcommand{\ttdefault}{lmtt}}
@@ -294,7 +296,7 @@ def __init__(self, **options):
294296

295297
'preamble': latex_preamble,
296298

297-
'figure_align': 'H', # 'htbp',
299+
'figure_align': 'H', # Latex figure (float) alignment; optional: 'htbp'
298300
'extraclassoptions': 'openany,oneside',
299301

300302
'maketitle': latex_maketitle,

docs/source/quick-start.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,22 +531,21 @@ The module :mod:`pyhelpers.text` can assist us in manipulating textual data. For
531531
>>> result_1
532532
'Anglia'
533533
534-
By default, the function relies on `difflib`_ - a Python built-in module - to perform the task. Alternatively, we could also make use of an open-source package, `FuzzyWuzzy`_, via setting the parameter ``engine='fuzzywuzzy'``:
534+
By default, the function relies on `difflib`_ - a Python built-in module - to perform the task. Alternatively, we could also make use of an open-source package, `RapidFuzz`_, via setting the parameter ``engine='rapidfuzz'`` (or simply ``engine='fuzz'``):
535535

536-
.. _`FuzzyWuzzy`: https://pypi.org/project/fuzzywuzzy/
537536
.. _`difflib`: https://docs.python.org/3/library/difflib.html
537+
.. _`RapidFuzz`: https://pypi.org/project/rapidfuzz/
538538

539539
.. code-block:: python
540540
541-
>>> # Find the most similar word to 'angle' by using FuzzyWuzzy
542-
>>> result_2 = find_similar_str(word, lookup_list, engine='fuzzywuzzy')
541+
>>> # Find the most similar word to 'angle' by using RapidFuzz
542+
>>> result_2 = find_similar_str(word, lookup_list, engine='rapidfuzz')
543543
>>> result_2
544544
'Anglia'
545545
546546
.. note::
547547

548-
- The package `FuzzyWuzzy`_ is NOT an essential dependency for the installation of pyhelpers>=1.3.0. We need to install it (e.g. via ``pip install``) to make the function run successfully with setting ``engine='fuzzywuzzy'``.
549-
- In previous versions of pyhelpers (i.e. pyhelpers<=1.2.14), optional values for the parameter ``engine`` include ``'fuzzywuzzy'`` and ``'nltk'``. The latter has been replaced with ``'difflib'`` since pyhelpers 1.2.15.
548+
- The package `RapidFuzz`_ is NOT an essential dependency for the installation of pyhelpers. We need to install it (e.g. via ``pip install``) to make the function run successfully with setting ``engine='rapidfuzz'`` (or ``engine='fuzz'``).
550549

551550

552551

0 commit comments

Comments
 (0)