python-dandelion-eu icon indicating copy to clipboard operation
python-dandelion-eu copied to clipboard

unable to set parameter "lang " , when using text similarity , throws error

Open nayakvidya opened this issue 4 years ago • 1 comments

datatxt.sim(txt1,txt2, "en") gives error . How to specify english language when giving similarity

nayakvidya avatar May 13 '20 09:05 nayakvidya

hi, you should explicitly set the parameter lang as described in https://dandelion.eu/docs/api/datatxt/sim/v1/ , only the text1 and text2 parameters are positional in Python API, so:

datatxt.sim(txt1,txt2, lang="en")

giacbrd avatar May 13 '20 10:05 giacbrd