seatgeek / fuzzywuzzy

Fuzzy String Matching in Python
http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/
GNU General Public License v2.0
9.21k stars 874 forks source link

Fuzzywuzzy has no attribute 'ratio' #275

Closed ChinCity closed 4 years ago

ChinCity commented 4 years ago

When I try and use the ratio I get an AttributeError??

import fuzzywuzzy as fuzz fuzz.ratio( x , n)

AttributeError: module 'fuzzywuzzy' has no attribute 'ratio'

ChinCity commented 4 years ago

Instead of

import fuzzywuzzy as fuzz

I did:

from fuzzywuzzy import fuzz

this fixed the issue...

Solution can be found here: https://stackoverflow.com/questions/55110089/attributeerror-module-fuzzywuzzy-has-no-attribute-ratio