Use relative directory and revise TF-IDF according to book