code: def sent2features(sentence, template):
      
      return [word2features(sentence, i, template) for i in range(len(sentence))]
docs: extract features in a sentence
  
      :type sentence: list of token, each token is a list of tag