Skip to content

Setting score_cutoff parameter with function process.extractOne causes TypeError encountered when using v1.8.3 #167

Description

@JayPalm

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions