(wnid, graph)
return None
Return the synset of sampling_graph whose WordNet id is wnid.
Return the synset of sampling_graph whose WordNet id is wnid.
Return the synset of sampling_graph whose WordNet id is wnid .
def get_synset_by_wnid(wnid, graph):
  """Return the synset of sampling_graph whose WordNet id is wnid."""
  for n in graph:
    if n.wn_id == wnid:
      return n
  return None
def get_synset_by_wnid ( wnid , graph ) : for n in graph : if n . wn_id == wnid : return n return None