refactor SparsePhraseDictionaryFeature