ImportError: cannot import name 'cosine_similarity' from 'sense2vec.util'

Open
#107 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the import in the reported Python 3.7 environment and inspect the installed sense2vec/util.py for version 1.0.2. Compare the available API with the code that imports cosine_similarity; done means identifying whether the failure is an installation/version mismatch and documenting a verified resolution.

Written by the indexing model from the issue text.

Description

bug install

@svlandeg I installed sense2vec through pip I have v 1.0.2 and I get this error:
ImportError: cannot import name 'cosine_similarity' from 'sense2vec.util' (/.conda/envs/NewEnv15/lib/python3.7/site-packages/sense2vec/util.py)

Please let me know what I am doing wrong.

Dominant language
Python
Stars
1.7k
Forks
236
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from explosion/sense2vec

All issues in explosion/sense2vec

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.