              self.strings.add(token.dep_)
              self.strings.add(token.ent_type_)
              self.strings.add(token.ent_kb_id_)
          self.cats.append(doc.cats)
          if self.store_user_data:
              self.user_data.append(srsly.msgpack_dumps(doc.user_data))
  
      def get_docs(self, vocab: Vocab) -> Iterator[Doc]:
          """Recover Doc objects from the annotations, using the given vocab.
  
          vocab (Vocab): The shared vocab.
 
</s> remove         if self.store_user_data:
            self.user_data.extend(other.user_data)
 </s> add         self.user_data.extend(other.user_data) </s> remove         DocBins don't match.
 </s> add         DocBins don't match, or if they differ in whether or not to store
        user data. </s> remove             if self.store_user_data:
 </s> add             if i < len(self.user_data) and self.user_data[i] is not None: </s> remove         store_user_data (bool): Whether to include the `Doc.user_data`.
 </s> add         store_user_data (bool): Whether to write the `Doc.user_data` to bytes/file.
        self.user_data.append(srsly.msgpack_dumps(doc.user_data))
              self.strings.add(token.dep_)
              self.strings.add(token.ent_type_)
              self.strings.add(token.ent_kb_id_)
          self.cats.append(doc.cats)
        self.user_data.append(srsly.msgpack_dumps(doc.user_data))
        self.user_data.append(srsly.msgpack_dumps(doc.user_data))
  
      def get_docs(self, vocab: Vocab) -> Iterator[Doc]:
          """Recover Doc objects from the annotations, using the given vocab.
  
          vocab (Vocab): The shared vocab.
keep keep keep keep replace replace keep keep keep keep keep
 small UX fix for DocBin (#6167)

* add informative warning when messing up store_user_data DocBin flags

* add informative warning when messing up store_user_data DocBin flags

* cleanup test

* rename to patterns_path 
spacy/tokens/_serialize.py