GithubHelp home page GithubHelp logo

prashantranjan09 / wordembeddings-elmo-fasttext-word2vec Goto Github PK

View Code? Open in Web Editor NEW
158.0 5.0 31.0 28 KB

Using pre trained word embeddings (Fasttext, Word2Vec)

Python 100.00%
wordembeddings fasttext word2vec fair glove-embeddings glove fasttext-python wordembedding gensim-word2vec gensim

wordembeddings-elmo-fasttext-word2vec's People

Contributors

prashantranjan09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wordembeddings-elmo-fasttext-word2vec's Issues

Allocation of 1258291200 exceeds 10% of system memory. Killed

Hi,

I get the following error when I run the code. Any workaround for this?

2019-01-25 18:56:48.821520: W tensorflow/core/framework/allocator.cc:101] Allocation of 18454937600 exceeds 10% of system memory.
2019-01-25 18:56:48.821663: W tensorflow/core/framework/allocator.cc:101] Allocation of 1258291200 exceeds 10% of system memory.
Killed
.

I have already tried decreasing batch size but didn't help.

Elmo embeddings with different dataset

Hello, i tried to run your code with my dataset, i am able to word2vec/fasttext gensim with my dataset but unable to understand how u r handling word vectors for Elmo. in below screenshot.

how to change these values in below elmo function ( in my case x_text, y is a X Y form )
(train_x,train_y,test_x,test_y,max_len)

please advise how to change
image

Elmo embeddings for urdu language corpus

Do we have to change anything other then dataset to train elmo embedding in urdu language corpus?is it neccessary to use GPU to train model and any preprocessing of data required before training ?

Error when running code

hello , i get below mentioned error when i tried to train model with W2V, Fastttext

image

please advise. thnx

How to handle out of vocabulary words while using pretrained embeddings?

Hi everyone,

I would like to use German align vectors to train a crosslingual classification model (https://fasttext.cc/docs/en/aligned-vectors.html). If I got it right, wiki.de.align.vec is the file I need? I tried to implement it using word2vec_format, but ran into a problem of out of vocabulary words.

I know that this problem has been solved by fasttext. It obtaines semantic similar word vectors by breaking words into ngrams and it sounds awesome. To load the fasttext model I need a .bin file, which is not provided for aligned vectors. Do you have any ideas of solving the problem?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.