I tried to load an object from a file with a torch to create an embedded word:
infersent = torch.load('InferSent/encoder/infersent1.pkl', map_location=lambda storage, loc: storage)

And then I tried to establish the Glove path as it does [Alvira Swalin in her article] 1 4.
infersent.set_glove_path("InferSent/dataset/GloVe/glove.840B.300d.txt")

But it gives me:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-1a6368709557> in <module>()
      1 infersent = torch.load('InferSent/encoder/infersent1.pkl', map_location=lambda storage, loc: storage)
----> 2 infersent.set_glove_path("InferSent/dataset/GloVe/glove.840B.300d.txt")
      3 

AttributeError: 'collections.OrderedDict' object has no attribute 'set_glove_path'