Made bigram language model serializable