docstr: Predict the given sentences according to the registered mappings.
docstr_tok: ["Predict","the","given","sentences","according","to","the","registered","mappings","."]
code: def predict(
      self, sentences: Union[List[Sentence], Sentence]
  ) -> List[Sentence]:
      """Predict the given sentences according to the registered mappings."""
      if not isinstance(sentences, list):
          sentences = [sentences]
      if not sentences:
          return sentences
  
      sentences = self._listify(sentences)
      for sentence in sentences:
          self._label(sentence)
      return sentences
  
file_path: flair/flair/models/regexp_tagger.py
imports: import re
  import typing
  from dataclasses import dataclass, field
  from typing import Dict, List, Tuple, Union
  from flair.data import Sentence, Span, Token
label_desc: Use image node_id 6 for calling the RegexpTagger obj's underlying member method code with example usage: obj.predict(sentences) and returns: sentences, sentences