docstr: Extract Relation between two mentions according to VerbOcean knowledge
  
  Args:
      method (optional): OnlineOROfflineMethod.{ONLINE/OFFLINE} run against full VerbOcean or
          a sub-set of it (default = ONLINE)
      vo_file (required): str Location of VerbOcean file to work with
docstr_tok: ["Extract","Relation","between","two","mentions","according","to","VerbOcean","knowledge","Args",":","method","(","optional",")",":","OnlineOROfflineMethod",".","{","ONLINE\/OFFLINE","}","run","against","full","VerbOcean","or","a","sub-set","of","it","(","default","=","ONLINE",")","vo_file","(","required",")",":","str","Location","of","VerbOcean","file","to","work","with"]
code: def __init__(
      self,
      method: OnlineOROfflineMethod = OnlineOROfflineMethod.ONLINE,
      vo_file: str = None,
  ):
      """
      Extract Relation between two mentions according to VerbOcean knowledge
  
      Args:
          method (optional): OnlineOROfflineMethod.{ONLINE/OFFLINE} run against full VerbOcean or
              a sub-set of it (default = ONLINE)
          vo_file (required): str Location of VerbOcean file to work with
      """
      logger.info("Loading Verb Ocean module")
      if vo_file is not None and os.path.isfile(vo_file):
          if method == OnlineOROfflineMethod.OFFLINE:
              self.vo = load_json_file(vo_file)
          elif method == OnlineOROfflineMethod.ONLINE:
              self.vo = self.load_verbocean_file(vo_file)
          logger.info("Verb Ocean module lead successfully")
      else:
          raise FileNotFoundError(
              "VerbOcean file not found or not in path.."
          )
      super(VerboceanRelationExtraction, self).__init__()
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/relations/verbocean_relation_extraction.py
imports: import logging
  import os
  from typing import Dict, Set
  from nlp_architect.common.cdc.mention_data import MentionDataLight
  from nlp_architect.data.cdc_resources.relations.relation_extraction import RelationExtraction
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import RelationType, OnlineOROfflineMethod
  from nlp_architect.utils.io import load_json_file
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 1 to create a new VerboceanRelationExtraction object from inherited base classes: RelationExtraction with example: obj = VerboceanRelationExtraction(method, vo_file)