facebookresearch / InferSent

InferSent sentence embeddings
Other
2.28k stars 470 forks source link

Can't get attribute 'BLSTMEncoder' on <module 'models' from 'C:\\Users\\LVVS0613\\models.py #71

Closed manojjjm closed 6 years ago

manojjjm commented 6 years ago

i am using the sentence embedding to find the similarity between sentences i am using the below code

import torch

infersent = torch.load('infersent.allnli.pickle', map_location=lambda storage, loc: storage) infersent.use_cuda = False infersent.set_glove_path(PATH_TO_GLOVE)

i am getting below error message

This is a high priorty issue any lead will be of great help

Thanks in advance

aconneau commented 6 years ago

Hi,

I can't see there "below error message". It seems however that you're using a former version of InferSent. We recently made a few modifications to the code so you might want to pull the new version. Please check the README for using the new versions of InferSent.

Thanks!

aconneau commented 6 years ago

Closing bc no activity. Please re-open if you still have issues after pulling the new version of InferSent. Thanks