Language-specific embeddings

Path langsim.modules.local_lm.lang_embeddings
Executable yes

Separate out the embeddings belonging to the two languages, identified by prefixes on the words.

It’s assumed that all embeddings for language “X” have words of the form “X:word”.

This only works currently for cases where there are exactly two languages.


Name Type(s)
embeddings Embeddings


Name Type(s)
lang1_embeddings Embeddings
lang2_embeddings Embeddings


Name Description Type
lang1 Prefixes for language 1. If not given, language 1 is taken to be whichever appears first in the vocabulary string