0

I am using fuzzy wuzzy for some word matching in Python. When I try and run a loop, I simply get no output. I'm wondering if I'm doing something wrong?

I've recreated my problem with the code below:

from fuzzywuzzy import fuzz, process

choices = ['hello', 'world', 'today']
others = ['happy', 'today', 'colours']

for i in choices:
    print(i)
    process.extract(i, others)

Output:

hello
world
today

Process finished with exit code 0

Why is nothing happening for process.extract()?

I'd like this to try and match everything in 'choices' to everything in 'others'

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
user5847481
  • 55
  • 1
  • 6

0 Answers0