eaclark07 / sms

43 stars 11 forks source link

Getting elmo error #3

Open ankitkr3 opened 3 years ago

ankitkr3 commented 3 years ago

Hi @eaclark07 i am getting this erroor ModuleNotFoundError: No module named 'allennlp.commands.elmo' even when i have allennlp installed.

eaclark07 commented 3 years ago

It looks like this error could be caused by 1. the Python version or 2. something going wrong in the allennlp installation.

For 1, which Python version are you using? According to the AllenNLP repo, they require Python 3.6.1 or later.

For 2, are you able to get other elements of allennlp working outside this code/module? Maybe try reinstalling and checking if any errors come up.

ankitkr3 commented 3 years ago

@eaclark07 i have tried doing both, my python version is 3.6. Can you tell me the accurate version of allennlp used ?

eaclark07 commented 3 years ago

Sure, you can try using allennlp v0.8.3 to see if that helps.

ankitkr3 commented 3 years ago

@eaclark07 i am getting an score of 0.0007191846447187311 with elmo+sms, but my paragraph is 50% similar. Help me understand this score.

eaclark07 commented 3 years ago

Glad you were able to get elmo working! The scores are meaningful when compared to each other, so if that's the score you get when the paragraph is 50% similar, it should increase at 75% similarity and decrease at 25% similarity.

ankitkr3 commented 3 years ago

@eaclark07 sorry, i didn't understand your explanation.

eaclark07 commented 3 years ago

Just trying to say that the individual scores aren't really meant to be interpreted on their own, but how they compare to scores of other documents and other models.