Comments (9)
from biosentvec.
Close for now. Let us know if you have other problems. Thanks.
from biosentvec.
Could you please let me know how you resolved it. I am facing the same issue
from biosentvec.
Could you please let me know how you resolved it. I am facing the same issue
@preethyvarma
Follow the steps:
- Build fasttext as mentioned in https://github.com/facebookresearch/fastText#building-fasttext
- Install sent2vec as explained in https://github.com/epfml/sent2vec
from biosentvec.
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.
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.
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.
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,
- run command conda activate (type your environment name)
- run command git clone https://github.com/facebookresearch/fastText.git
- run command cd fastText
- run command pip install .
- run command cd ..
- run command git clone https://github.com/epfml/sent2vec.git
- run command cd sent2vec
- run command pip install .
you are done installing
from biosentvec.
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)
- MedSTS HOT 1
- Medical antonyms HOT 1
- name 'stdvector_base' is not defined when calling sent2vec.Sent2vecModel.embed_sentence() HOT 1
- How can I load the bio sent2vec model due to loss of RAM? HOT 2
- Unable to handle negation of sentences HOT 1
- Context Vectors for words HOT 1
- Question: when you specify limit, does it start with most frequently found words? HOT 3
- Question on calculate the similarity of UMNSRS? HOT 1
- wiki page - Mention of BioWordVec instead of BioSentVec HOT 1
- MedSTS dataset HOT 12
- Invalid words in vocabulary?
- terminate called after throwing an instance of 'std::bad_alloc' in AWS EFS while loading BioSentVec
- Months/Year of the PubMed corpus?
- "Model file cannot be opened for loading!" for BioSentVec HOT 2
- AttributeError: module 'sent2vec' has no attribute 'Sent2vecModel' HOT 1
- BioWordVec - how to handle phrases
- PubMed corpus only trained model for BioSentVec
- How to transfer learning or additional train with custom medical dataset HOT 1
- will it work on windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biosentvec.