Skip to content

Commit

Permalink
Merge pull request #113 from NickCrews/examples-tweak
Browse files Browse the repository at this point in the history
Fix comments in lookup example
  • Loading branch information
mammothb committed Feb 1, 2022
2 parents 5338716 + 87e5f9a commit 371458e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/examples/lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Basic usage
# max edit distance per lookup
# (max_edit_distance_lookup <= max_dictionary_edit_distance)
suggestions = sym_spell.lookup(input_term, Verbosity.CLOSEST, max_edit_distance=2)
# display suggestion term, term frequency, and edit distance
# display suggestion term, edit distance, and term frequency
for suggestion in suggestions:
print(suggestion)
Expand Down Expand Up @@ -56,7 +56,7 @@ Return original word if no correction within edit distance is found
suggestions = sym_spell.lookup(
input_term, Verbosity.CLOSEST, max_edit_distance=2, include_unknown=True
)
# display suggestion term, term frequency, and edit distance
# display suggestion term, edit distance, and term frequency
for suggestion in suggestions:
print(suggestion)
Expand Down Expand Up @@ -91,7 +91,7 @@ Avoid correcting phrases matching regex
suggestions = sym_spell.lookup(
input_term, Verbosity.CLOSEST, max_edit_distance=2, ignore_token=r"\w+\d"
)
# display suggestion term, term frequency, and edit distance
# display suggestion term, edit distance, and term frequency
for suggestion in suggestions:
print(suggestion)
Expand Down Expand Up @@ -126,7 +126,7 @@ Keep original casing
suggestions = sym_spell.lookup(
input_term, Verbosity.CLOSEST, max_edit_distance=2, transfer_casing=True
)
# display suggestion term, term frequency, and edit distance
# display suggestion term, edit distance, and term frequency
for suggestion in suggestions:
print(suggestion)
Expand Down

0 comments on commit 371458e

Please sign in to comment.