init TfIdfKeyWord.hpp
modify construction and init for segments