code: def predict(self, sentences):
      mentions = []
      for sent_idx, sent in enumerate(sentences):
          sent = Sentence(sent, use_tokenizer=True)
          self.model.predict(sent)
          sent_mentions = sent.to_dict(tag_type="ner")["entities"]
          for mention in sent_mentions:
              mention["sent_idx"] = sent_idx
          mentions.extend(sent_mentions)
      return {"sentences": sentences, "mentions": mentions}
  
file_path: BLINK/blink/ner.py
imports: from flair.models import SequenceTagger
  from flair.data import Sentence
label_desc: Use image node_id 2 for calling the Flair obj's underlying member method code with example usage: obj.predict(sentences) and returns: dict