MaartenGr / PolyFuzz

Fuzzy string matching, grouping, and evaluation.
https://maartengr.github.io/PolyFuzz/
MIT License
733 stars 67 forks source link

Error when using top_n in Embeddings #18

Closed stuartong closed 3 years ago

stuartong commented 3 years ago

Great library really loving it but I am running into the following error - any ideas why?

`--------------------------------------------------------------------------- TypeError Traceback (most recent call last)

in 2 3 embeddings = TransformerWordEmbeddings('bert-base-multilingual-cased') ----> 4 bert = Embeddings(embeddings, min_similarity=0,top_n=3 ,model_id="BERT",) 5 tfidf = TFIDF(min_similarity=0) 6 edit = EditDistance() TypeError: __init__() got an unexpected keyword argument 'top_n' `
MaartenGr commented 3 years ago

Which version of PolyFuzz are you using? The top_n feature was implemented in v0.3 and was not available in earlier versions.

stuartong commented 3 years ago

Ah yes - it appears I have 0.2.2 installed