docstr: Check if input mentions has partial synset relation
  
  Args:
      page_x:WordnetPage
      page_y:WordnetPage
  
  Returns:
      RelationType.WORDNET_PARTIAL_SYNSET_MATCH or RelationType.NO_RELATION_FOUND
docstr_tok: ["Check","if","input","mentions","has","partial","synset","relation","Args",":","page_x",":","WordnetPage","page_y",":","WordnetPage","Returns",":","RelationType.WORDNET_PARTIAL_SYNSET_MATCH","or","RelationType.NO_RELATION_FOUND"]
code: def extract_partial_synset_match(
      page_x: WordnetPage, page_y: WordnetPage
  ) -> RelationType:
      """
      Check if input mentions has partial synset relation
  
      Args:
          page_x:WordnetPage
          page_y:WordnetPage
  
      Returns:
          RelationType.WORDNET_PARTIAL_SYNSET_MATCH or RelationType.NO_RELATION_FOUND
      """
      x_words = page_x.clean_phrase.split()
      y_words = page_y.clean_phrase.split()
  
      if len(x_words) == 0 or len(y_words) == 0:
          return RelationType.NO_RELATION_FOUND
  
      x_synonyms = page_x.all_clean_words_synonyms
      y_synonyms = page_y.all_clean_words_synonyms
  
      # One word - check whether there is intersection between synsets
      if (
          len(x_synonyms) == 1
          and len(y_synonyms) == 1
          and len([w for w in (x_synonyms[0] & y_synonyms[0])]) > 0
      ):
          # print 'matched by partial - ' + str(y) + ' , ' + str(x)
          return RelationType.WORDNET_PARTIAL_SYNSET_MATCH
  
      return RelationType.NO_RELATION_FOUND
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/relations/wordnet_relation_extraction.py
imports: import logging
  import os
  from typing import Set, List
  from nlp_architect.common.cdc.mention_data import MentionDataLight
  from nlp_architect.data.cdc_resources.data_types.wn.wordnet_page import WordnetPage
  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.data.cdc_resources.wordnet.wordnet_offline import WordnetOffline
  from nlp_architect.data.cdc_resources.wordnet.wordnet_online import WordnetOnline
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 5 for calling the WordnetRelationExtraction obj's underlying member method code with example usage: obj.extract_partial_synset_match(page_x, page_y) and returns: RelationType, RelationType, RelationType