def s_one_set(topics):
 s_one_set = []
 for top_words in topics:
  s_one_set_t = []
  for w_prime in top_words:
   s_one_set_t.append((w_prime, top_words))
  s_one_set.append(s_one_set_t)
 return s_one_set

def s_one_set ( topics ) : s_one_set = [ ] for top_words in topics : s_one_set_t = [ ] for w_prime in top_words : s_one_set_t . append ( ( w_prime , top_words ) ) s_one_set . append ( s_one_set_t ) return s_one_set
this function performs s_one_set segmentation on a list of topics .