class_docstr: Set expansion module, given a trained np2vec model.
class_docstr_tok: ["Set","expansion","module",",","given","a","trained","np2vec","model","."]
docstr: Given an term, return its id.
  
  Args:
      term(str): term (noun phrase)
  
  Returns:
      its id (if is part of the model)
docstr_tok: ["Given","an","term",",","return","its","id",".","Args",":","term","(","str",")",":","term","(","noun","phrase",")","Returns",":","its","id","(","if","is","part","of","the","model",")"]
code: def term2id(self, term, suffix=True):
      """
      Given an term, return its id.
  
      Args:
          term(str): term (noun phrase)
  
      Returns:
          its id (if is part of the model)
      """
      if self.grouping:
          if term not in self.np2id.keys():
              return None
          term = self.np2id[term]
      id = term.replace(" ", self.mark_char)
      if suffix:
          id += self.mark_char
      if id not in self.np2vec_model.vocab:
          return None
      return id
  
file_path: nlp-architect/solutions/set_expansion/set_expand.py
imports: import logging
  import sys
  from argparse import ArgumentParser
  from os import path
  from nlp_architect.models.np2vec import NP2vec
  from nlp_architect.utils.io import validate_existing_filepath, check_size, load_json_file
label_desc: Use image node_id 2 for calling the SetExpand obj's underlying member method code with example usage: obj.term2id(term, suffix) and returns: id, None, None