Setting score_cutoff parameter with function process.extractOne causes TypeError encountered when using v1.8.3
#168
|
Error encountered using v1.8.3: File "~/.pyenv/versions/3.10.0/envs/cld/lib/python3.10/site-packages/make_pptx.py", line 242, in make_pptx
slide_title_analysis_match = process.extractOne(
File "cpp_process.pyx", line 475, in cpp_process.extractOne
File "cpp_common.pxd", line 118, in cpp_common.KwargsInit
TypeError: ('Got unexpected keyword arguments: ', 'score_cuttoff')This is the code used in my script: slide_title_analysis_match = process.extractOne(
slide_title, # String
analysis_groups, # List of strings
scorer=fuzz.partial_token_ratio,
score_cuttoff=90,
)This same code does not cause this error with v1.8.2 or v1.5.0 (only two versions I tested with). |
Answered by
maxbachmann
Dec 1, 2021
Replies: 2 comments
|
I made the argument checking stricter in v1.8.3 to prevent errors like yours. You misspelled |
0 replies
Answer selected by
maxbachmann
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made the argument checking stricter in v1.8.3 to prevent errors like yours. You misspelled
score_cutoffasscore_cuttoffwhich was previously silently ignored.