Comments (4)
Hey good people.
So, the package is old (~2020), and the python version and libraries had changed A LOT since them.
For me to use the library I had to do some workarounds:
I create a VM to use old python version
I was using a VM with Ubuntu 20.04
Use a python version that was "current" around 2020
I used python 3.8 and it worked.
apt-get update
apt-get install python3-pip
You have to set the libs versions also to be the versions around 2020
Depending in with machine and OS, you may need to install more or less packages. In my case what I need to install:
python3.8 -m pip install setuptools==50.0.3 wheel==0.36.1 torch==1.8 torchtext==0.9
python3.8 -m pip install pybind11==2.6.1 numpy==1.18.0
python3.8 -m pip install fasttext pandas==1.2.0 scipy==1.6.0
python3.8 -m pip install deepmatcher
*I think it's importante for you to use the python3.X -m pip, because it'll install the packages in the right python path.
Import the library
After installing the packages I used:
python3.8
And imported the library:
import deepmatcher as dp
And that was that.
from deepmatcher.
Hi,
I'm having the same error. I executed:
pip install deepmatcher
Then executed:
import deepmatcher
And got the ModuleNotFoundError: No module named 'torchtext.legacy'
I have this versions (installed with pip)
torch==1.8.0
torchdata==0.6.1
torchtext==0.9.0
Could you please help me out with this issue?
Thanks
from deepmatcher.
I would think, someone can pick up and make the upgrades.. I tried a bunch of stuff but couldnt get it working. If I make a breakthrough - will send pull request
from deepmatcher.
I am still getting the error even if i downgrade the python version
from deepmatcher.
Related Issues (20)
- Optimization of service running deepmatcher
- Can't find train.csv, validate.csv and test.csv
- [ Feature Request ] How to get multiple match
- dm.data.preprocess no vectors found at /root/.vector_cache/wiki.en.bin
- Running getting_started with RuntimeError and # Resets _flat_weights
- Support languages other than English?
- cannot import name 'unicode_csv_reader' from 'torchtext.utils'
- Class Imbalance
- Treatment of NAs
- Logging model training metrics (log loss) + tensorboard
- Running train multiple times (same inputs) results in different models HOT 1
- create unlabeled data
- About dm.data.process
- Ideas around intepretability
- Error dm.data.process - SSLError HOT 1
- ModuleNotFoundError: No module named 'torchtext.legacy' HOT 9
- Problem loading model state HOT 4
- Direct inference on pandas dataframe HOT 2
- Faster inference
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 deepmatcher.