New convenience methods
This release has the following changes:
- Add the
matrix_copymethod to get a numpy array copy of the embedding matrix. - Add the
vocabmethod to get aVocabinstance, which provides theitem_to_indicesmethod to get the indices or subword indices of a word.Vocabalso provides indexing to look up the word corresponding to an index (e.g.vocab[3823]). - Upgrade to finalfusion 0.6.