Word Embeddings with nn.Embedding except glove I'm not an expert in nlp but I know we usually use glove, word2vec or fasttext ect to get embedding vectors so what is nn.Embedding and what does it do?
I mean shouldn't it be specialized for each language (dictionary of use) btw are glove and others specialized for an specific dictionary? if it is so how an general embedding (nn.Embedding) useful?

nn.Embedding is a generic way to allow for learning an embedding for arbitrary discrete data.  This can be useful for encoding other types of categorical variables.  For example you might have make/model information for cars and want a representation that allows for having the embedded representations for "Ford F-150" and "Dodge Ram" be similar since they are both pickup trucks.  This is not so much about NLP, there is no grammar involved, just  a way of representing this type of information.
