Code Monkey home page Code Monkey logo

Comments (9)

yfpeng avatar yfpeng commented on May 27, 2024

from biosentvec.

qingyu-qc avatar qingyu-qc commented on May 27, 2024

Close for now. Let us know if you have other problems. Thanks.

from biosentvec.

preethyvarma avatar preethyvarma commented on May 27, 2024

Could you please let me know how you resolved it. I am facing the same issue

from biosentvec.

kaushikacharya avatar kaushikacharya commented on May 27, 2024

Could you please let me know how you resolved it. I am facing the same issue

@preethyvarma
Follow the steps:

  1. Build fasttext as mentioned in https://github.com/facebookresearch/fastText#building-fasttext
  2. Install sent2vec as explained in https://github.com/epfml/sent2vec

from biosentvec.

arindam-halder avatar arindam-halder commented on May 27, 2024

Hello, I am getting the same attribute error. I am using pycharm to run the code. I but fasttext as well as sent2vec using the steps above. Also tried installing them via pycharm. Neither worked for me.

from biosentvec.

Stannislav avatar Stannislav commented on May 27, 2024

Note that if you install sent2vec using

$ pip install sent2vec

then you'll get the wrong package. This is because the package sent2vec on PyPI is a totally different package with the same name.

The correct way of installing sent2vec is to clone their repository here https://github.com/epfml/sent2vec and to follow the instructions in the README file

from biosentvec.

swatisaivarma avatar swatisaivarma commented on May 27, 2024

Can you please mention exactly how to import sent2vec from this location https://github.com/epfml/sent2vec? I have cloned the repo, but when I try to run it doesnt.

from biosentvec.

AmmarFahmy avatar AmmarFahmy commented on May 27, 2024

Can you please mention exactly how to import sent2vec from this location https://github.com/epfml/sent2vec? I have cloned the repo, but when I try to run it doesn't.

follow these steps,

  1. run command conda activate (type your environment name)
  2. run command git clone https://github.com/facebookresearch/fastText.git
  3. run command cd fastText
  4. run command pip install .
  5. run command cd ..
  6. run command git clone https://github.com/epfml/sent2vec.git
  7. run command cd sent2vec
  8. run command pip install .

you are done installing

from biosentvec.

mvd-lab avatar mvd-lab commented on May 27, 2024

I tried @AmmarFahmy suggestion, but here is the error message I get. Help?

(searchenv) $ pip install .
Processing /Users/devarmu1/Progs/kg/ctkg_09092022/src/expwiths2v/sent2vec
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: Cython>=0.29.13 in /Users/devarmu1/opt/anaconda3/envs/searchenv/lib/python3.9/site-packages (from sent2vec==0.0.0) (0.29.28)
Requirement already satisfied: numpy>=1.17.1 in /Users/devarmu1/opt/anaconda3/envs/searchenv/lib/python3.9/site-packages (from sent2vec==0.0.0) (1.22.3)
Building wheels for collected packages: sent2vec
Building wheel for sent2vec (pyproject.toml) ... done
Created wheel for sent2vec: filename=sent2vec-0.0.0-cp39-cp39-macosx_10_9_x86_64.whl size=147387 sha256=c44542481354218e1045886725003db8fb962b39124040a0c98d9aee475b4b44
Stored in directory: /private/var/folders/5s/grd6kzt52836tcvqqg_7jx5r0000gn/T/pip-ephem-wheel-cache-75_u2h64/wheels/3c/16/0b/4cc8a8c458bdb5912ce6fce3eb01b776754ed37205953d19f6
Successfully built sent2vec
Installing collected packages: sent2vec
Attempting uninstall: sent2vec
Found existing installation: sent2vec 0.0.0
Uninstalling sent2vec-0.0.0:
Successfully uninstalled sent2vec-0.0.0
Successfully installed sent2vec-0.0.0
(searchenv) $ python3
Python 3.9.6 (default, Aug 18 2021, 12:38:10)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

import sent2vec
Traceback (most recent call last):
File "init.pxd", line 942, in numpy.import_array
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "src/sent2vec.pyx", line 17, in init sent2vec
cnp.import_array()
File "init.pxd", line 944, in numpy.import_array
ImportError: numpy.core.multiarray failed to import

from biosentvec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.