preparation for phrase-based translation implementation, need to build lexicon and write decoding algorithm