glove-python icon indicating copy to clipboard operation
glove-python copied to clipboard

AttributeError: module 'glove.metrics' has no attribute 'read_analogy_file'

Open DoDzilla-ai opened this issue 4 years ago • 0 comments

I'm trying to run the analogy_tasksevaluation.py and I am receiving the following error:

Traceback (most recent call last):
  File "/home/sana/Desktop/proj/glove-python-master/examples/analogy_tasks_evaluation.py", line 44, in <module>
    metrics.read_analogy_file(args.test)]
AttributeError: module 'glove.metrics' has no attribute 'read_analogy_file'

I installed the glove_python with pip to Python 3.6

Similarly, construct_analogy_test_set and analogy_rank_score are also missing in the metrics.

DoDzilla-ai avatar Jun 07 '21 10:06 DoDzilla-ai