finish dictionary. Write dictionary file and matrix-form-news data.