title: Passing multiple sentences to BERT?
body: <p>I have a dataset with paragraphs that I need to classify into two classes. These paragraphs are usually 3-5 sentences long. The overwhelming majority of them are less than 500 words long. I would like to make use of BERT to tackle this problem.</p>
  <p>I am wondering how I should use BERT to generate vector representations of these paragraphs and especially, whether it is fine to just pass the whole paragraph into BERT?</p>
  <p>There have been informative discussions of related problems <a href="https://stackoverflow.com/questions/58636587/how-to-use-bert-for-long-text-classification/63413589#63413589">here</a> and <a href="https://stackoverflow.com/questions/63671085/how-to-use-bert-for-long-sentences">here</a>. These discussions focus on how to use BERT for representing whole documents. In my case the paragraphs are not that long, and indeed could be passed to BERT without exceeding its maximum length of 512. However, BERT was trained on sentences. Sentences are relatively self-contained units of meaning. I wonder if feeding multiple sentences into BERT doesn't conflict fundamentally with what the model was designed to do (although this appears to be done regularly).</p>