in reference/src/main/python/similar.py [0:0]
def append_feature_index(is_init, is_counter, key, feature_list, c):
if is_init:
n = vocab.add_and_get_index(key)
else:
n = vocab.get_index(key)
if is_counter:
if n != str(config.NUM_FEATURE_MIN):
c[n] += 1
else:
feature_list.append(n)