How to Train GloVe algorithm on my own corpus

前端 未结 4 1078
孤街浪徒
孤街浪徒 2021-02-04 01:59

I tried to follow this.
But some how I wasted a lot of time ending up with nothing useful.
I just want to train a GloVe model on my own corpus (~900Mb corpu

4条回答
  •  长发绾君心
    2021-02-04 02:36

    Here is my take on this::

    1. After cloning the repository, edit the demo.sh file as you have to train it using your own corpus replace the CORPUS name with your file's name.
    2. Then remove the script between MAKE and CORPUS as that is for downloading an example corpus for you.
    3. Then run make which will form the four files in the build folder.
    4. Now run ./demo.sh which will train and do all the stuff mentioned in the script on your own corpus and output will be generated as vectors.txt file.

    Note : Don't forget to keep your corpus file directly inside the Glove folder.

提交回复
热议问题