docstr: Args:
      support: supporting set. 
          [{'text' or 'token': ..., 
            'h': {'pos': [start, end], ...}, 
            't': {'pos': [start, end], ...}, 
            'relation': ...}]
      query: same format as support
  Return:
      [(relation, score), ...]
  
  
  For few-shot relation extraction, please refer to FewRel
  https://github.com/thunlp/FewRel
docstr_tok: ["Args",":","support",":","supporting","set",".","[","{","'text","'","or","'token","'",":","...",",","'","h","'",":","{","'pos","'",":","[","start",",","end","]",",","...","}",",","'t","'",":","{","'pos","'",":","[","start",",","end","]",",","...","}",",","'relation","'",":","...","}","]","query",":","same","format","as","support","Return",":","[","(","relation",",","score",")",",","...","]","For","few-shot","relation","extraction",",","please","refer","to","FewRel","https",":","\/\/github.com\/thunlp\/FewRel"]
code: def infer(self, support, query):
      """
      Args:
          support: supporting set.
              [{'text' or 'token': ...,
                'h': {'pos': [start, end], ...},
                't': {'pos': [start, end], ...},
                'relation': ...}]
          query: same format as support
      Return:
          [(relation, score), ...]
  
  
      For few-shot relation extraction, please refer to FewRel
      https://github.com/thunlp/FewRel
      """
      raise NotImplementedError
  
file_path: OpenNRE/opennre/model/base_model.py
imports: import torch
  from torch import nn
  import json
label_desc: Use image node_id 2 for calling the FewShotRE obj's underlying member method code with example usage: obj.infer(support, query) without return types