accept max_rank option
support word2vec binary format variants