class_docstr:     This prompt format was inspired by the below data in fujiki/japanese_alpaca_data.
      ```
      {
          'instruction': '与えられた文脈に最も適した文を選択してください。',
          'input': '文脈：あなたは親友と現在の仕事の状況について話しています。
  A）私にはあまり選択肢がありません。
  B）他に選択肢がありません。
  C）私には本当に決断する必要がありません。',
          'output': 'A) 私には多くの選択肢がありません。'
      }
      ```
      Reference:
      - data: https://huggingface.co/datasets/fujiki/japanese_alpaca_data
      - code: https://github.com/Stability-AI/gpt-neox/blob/c130a4edc1120dccec8f02a34eb60d3e8f484cd3/finetune/finetune_base_ja.py#LL118C23-L127C11
      
class_docstr_tok: ["This","prompt","format","was","inspired","by","the","below","data","in","fujiki\/japanese_alpaca_data",".","``","`","{","'instruction","'",":","'\u4e0e\u3048\u3089\u308c\u305f\u6587\u8108\u306b\u6700\u3082\u9069\u3057\u305f\u6587\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002","'",",","'input","'",":","'\u6587\u8108\uff1a\u3042\u306a\u305f\u306f\u89aa\u53cb\u3068\u73fe\u5728\u306e\u4ed5\u4e8b\u306e\u72b6\u6cc1\u306b\u3064\u3044\u3066\u8a71\u3057\u3066\u3044\u307e\u3059\u3002","A\uff09\u79c1\u306b\u306f\u3042\u307e\u308a\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u305b\u3093\u3002","B\uff09\u4ed6\u306b\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u305b\u3093\u3002","C\uff09\u79c1\u306b\u306f\u672c\u5f53\u306b\u6c7a\u65ad\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002","'",",","'output","'",":","'","A",")","\u79c1\u306b\u306f\u591a\u304f\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u305b\u3093\u3002'","}","``","`","Reference",":","-","data",":","https",":","\/\/huggingface.co\/datasets\/fujiki\/japanese_alpaca_data","-","code",":","https",":","\/\/github.com\/Stability-AI\/gpt-neox\/blob\/c130a4edc1120dccec8f02a34eb60d3e8f484cd3\/finetune\/finetune_base_ja.py","#","LL118C23-L127C11"]
docstr: 以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。
  
  ### 指示:
  {instruction}
  
  ### 入力:
  {input}
  
  ### 応答:
  {response}
code: def doc_to_text(self, doc):
      """
      以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。
  
      ### 指示:
      {instruction}
  
      ### 入力:
      {input}
  
      ### 応答:
      {response}
      """
      input_text = f"文脈：{doc['title']}\n{doc['context'].split('[SEP]')[-1].strip()}\n質問：{doc['question']}"
      return f"### 指示:\n{self.INSTRUCTION}\n\n### 入力:\n{input_text}\n\n### 応答:\n"
  
imports: import os
  import inspect
  import datasets
  from math import exp
  from lm_eval.base import rf, Task
  from functools import partial
  from lm_eval.jasquad import jasquad
label_desc: Use image node_id 1 for calling the JSQuADWithJAAlpacaPromptV12 obj's underlying member method code with example usage: obj.doc_to_text(doc) and returns: str, self, str, input_text, str