Flair: Embeddings dimension for translation

Created on 29 May 2019  路  5Comments  路  Source: flairNLP/flair

I want to use Flair Embeddings in my NMT experiments

Following your tutorials, you recommend to use Stacked Embeddings fromnews-forward, news-backward and standard word embeddings like glove

It sounds promising but such Stacked Embeddings have a dimension of 4196 which is big for a Transformer model

Do you have any recommendations for that ? I will certainly try multiple approaches but any advice would be appreciated

Thanks a lot

question wontfix

Most helpful comment

I've tried to change the size of the embedding2nn layer from embedding_lengthembedding_length to embedding_length(embedding_length/2), and the result didn't change much in NER task.

All 5 comments

Hi @valentinmace,

I think you could use the news-forward-fast and news-backward-fast Flair Embeddings. These embeddings have the half size (of dimensions) compared to the "normal" news-forward embeddings. These would reduce the dimensionality :)

Hi @stefan-it

As you suggested I will start using smaller embeddings like news-forward-fast and then try with bigger ones, possibly stacked

Do you have any preference regarding where I should post my results ?

Hi @valentinmace we'd be very interested to hear how embeddings / stacked embedding influence NMT, so if you could post your results here (in this thread) that would be great!

I've tried to change the size of the embedding2nn layer from embedding_lengthembedding_length to embedding_length(embedding_length/2), and the result didn't change much in NER task.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnishant2 picture mnishant2  路  3Comments

jewl123 picture jewl123  路  3Comments

mittalsuraj18 picture mittalsuraj18  路  3Comments

isanvicente picture isanvicente  路  3Comments

inyukwo1 picture inyukwo1  路  3Comments