nlpstanford-nlp

GloVe Import error - Corpus - Unable to import


I have tried everything possible while importing Corpus from Glove - I tried Pip Install and the Pip3 Install from the Zip file. Nothing seems to work. Please do help.


Solution

  • You can use Glove from mittens as well. Mittens use the same algorithm as GloVe and vectorizes the objective function.

    Install:

    pip install -U mittens
    

    Import:

    from mittens import GloVe
    

    For Details - https://github.com/roamanalytics/mittens#mittens