class_docstr: A simple server to load the w2v model and handle expand requests from the
  ui
code: def annotate(text, seed):
      # remove extra spaces from text
      text = re.sub(r"\s\s+", " ", text)
      np_list = []
      docs = [text]
      spans = extract_noun_phrases(docs, nlp, args.chunker)
      for x in spans:
          np = x.text
          if np not in np_list:
              np_list.append(np)
      logger.info("np_list=%s", str(np_list))
      return se.similarity(np_list, seed, args.similarity)
  
file_path: nlp-architect/solutions/set_expansion/expand_server.py
imports: import socketserver
  import argparse
  import pickle
  import logging
  import re
  from nlp_architect.utils.io import validate_existing_filepath, check_size
  from prepare_data import extract_noun_phrases, load_parser
  from set_expand import SetExpand
label_desc: Use image node_id 2 for calling the MyTCPHandler obj's underlying member method code with example usage: obj.annotate(text, seed) and returns: se