txt_feature function

Extract basic text features which are useful for entity recognition