title: No module named 'transformers.models' while trying to import BertTokenizer
body: <p>I am trying to import BertTokenizer from the transformers library as follows:</p>
  <pre><code>import transformers
  from transformers import BertTokenizer
  from transformers.modeling_bert import BertModel, BertForMaskedLM
  </code></pre>
  <p>However, I get the following error:</p>
  <p><a href="https://i.stack.imgur.com/rge7T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rge7T.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/kfrff.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfrff.png" alt="enter image description here" /></a></p>
  <p>I am using transformers version 3.5.1 because I had a problem with the updated version which can be found <a href="https://datascience.stackexchange.com/questions/87186/bert-dropout-argument-input-position-1-must-be-tensor-not-str">here</a>.</p>
  <p>Does anyone know how to fix this? Apart from updating the transformers library to its latest version (that will unfortunately cause more errors). <br></p>
  <p>Any help is appreciated!</p>