facebookresearch / StarSpace

Learning embeddings for classification, retrieval and ranking.
MIT License
3.95k stars 531 forks source link

Starspace in Colab #290

Open nikhilrana015 opened 4 years ago

nikhilrana015 commented 4 years ago

I am currently working on my NLP assignment on google colab and I wanted to use the star space embedding but I don't know how to use it in colab. I used the bash command but it gives me an error by saying bin bash cmd is not found. !starspace train -trainFile "data/clean_train.tsv" -model starspace_embedding \ -trainMode 3 -adagrad true -ngrams 1 -epoch 5 -dim 100 -similarity cosine -minCount 2 \ -verbose true -fileFormat labelDoc -negSearchLimit 10 -lr 0.05. Can anyone please help me regarding this. I am not able to run on my laptop because my laptop doesn't have the GPU's

Akshaypatil15 commented 4 years ago

!git clone https://github.com/facebookresearch/Starspace.git %cd Starspace !make !./starspace train -trainFile "data/clean_train.tsv" -model starspace_embedding \ -trainMode 3 -adagrad true -ngrams 1 -epoch 5 -dim 100 -similarity cosine -minCount 2 \ -verbose true -fileFormat labelDoc -negSearchLimit 10 -lr 0.05