0

i have a problem with reticulate package in R

library(reticulate)

fuz  <- import("fuzzywuzzy")

print(fuz$ratio("ello", "hello"))

i have tried to use fuzzywuzzy(python module) in R but got an error:

Error in py_get_attr_impl(x, name, silent) :                                    
   AttributeError: module 'fuzzywuzzy' has no attribute 'ratio'
CoderCat
  • 21
  • 6

1 Answers1

0

that helped

library(fuzzywuzzyR)

fuz  <- FuzzMatcher$new()

fuz$Ratio("ello", "hello")
CoderCat
  • 21
  • 6