title: Sentence Transformers - IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
body: <p>I am using DistilBERT from sentence_transformers library on kaggle, but when I import my model and try to encode a sentence with it :</p>
  <pre><code>modelB = SentenceTransformer('../input/sentence-transformer-models/stsb-distillbert-base')
  
  a = ['This framework generates embeddings for each input sentence',
      'Sentences are passed as a list of string.',
      'The quick brown fox jumps over the lazy dog.']
  
  modelB.encode(a)
  
  </code></pre>
  <p>I got the following error :</p>
  <blockquote>
  <p>IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)</p>
  </blockquote>