docstr: Extract Relation between two mentions according to Within document co-reference
  
  Args:
      wd_file (required): str Location of within doc co-reference mentions file
docstr_tok: ["Extract","Relation","between","two","mentions","according","to","Within","document","co-reference","Args",":","wd_file","(","required",")",":","str","Location","of","within","doc","co-reference","mentions","file"]
code: def __init__(self, wd_file: str):
      """
      Extract Relation between two mentions according to Within document co-reference
  
      Args:
          wd_file (required): str Location of within doc co-reference mentions file
      """
      logger.info("Loading Within doc resource")
      if wd_file is not None and os.path.isfile(wd_file):
          wd_mentions_json = load_json_file(wd_file)
          self.within_doc_coref_chain = self.arrange_resource(
              wd_mentions_json
          )
      else:
          raise FileNotFoundError(
              "Within-doc resource file not found or not in path"
          )
      super(WithinDocCoref, self).__init__()
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/relations/within_doc_coref_extraction.py
imports: import logging
  import os
  from typing import List, Set
  from nlp_architect.common.cdc.mention_data import MentionData
  from nlp_architect.data.cdc_resources.relations.relation_extraction import RelationExtraction
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import RelationType
  from nlp_architect.utils.io import load_json_file
label_desc: Use image node_id 1 to create a new WithinDocCoref object from inherited base classes: RelationExtraction with example: obj = WithinDocCoref(wd_file)