Code Monkey home page Code Monkey logo

Comments (8)

doguaraci avatar doguaraci commented on July 20, 2024

Hi Taha, could you please be more specific? What do you mean by "installing on pycharm"? Did you try running the steps on the readme?

from finbert.

Vishal-Mendekar avatar Vishal-Mendekar commented on July 20, 2024

Hi I have the below version installed in my system
Python 3.6.0
Anaconda 4.9.2
torch 1.8.0

I have cloned finBERT in my Drive. But when I am running this command on the conda prompt "conda env create -f environment.yml" I am getting this error message.

Pip subprocess error:
ERROR: Could not find a version that satisfies the requirement torch==1.1.0 (from -r C:\Users\Vishal Mendekar\finBERT\condaenv.xiuhwud4.requirements.txt (line 4)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0)
ERROR: No matching distribution found for torch==1.1.0 (from -r C:\Users\Vishal Mendekar\finBERT\condaenv.xiuhwud4.requirements.txt (line 4))
failed
CondaEnvException: Pip failed

I tried installing torch version 1.1.0 manually but it gives the error "No such distribution found".

How can I get this initial setup thing to work properly in my system?

By default, I had python 3.9.1 in my system but I downgraded it to 3.6.0 thinking maybe it will help. But it didn't.

Also please tell do running finBERT has got anything to do with Python's version.

from finbert.

doguaraci avatar doguaraci commented on July 20, 2024

We didn't test the code on Windows. I'd suggest to try running it on Linux or MacOS if possible. Or you can use Google colab.

from finbert.

Vishal-Mendekar avatar Vishal-Mendekar commented on July 20, 2024

What you mean by running Google colab? Are you trying to say I should train the whole model again or something else. I am a bit confused with your statement.

from finbert.

Vishal-Mendekar avatar Vishal-Mendekar commented on July 20, 2024

One more thing to add. In the environemnt.yml file, there are dependencies with their versions mentioned. Like this

jupyter=1.0.0
pandas=0.23.4
python=3.7.3
numpy==1.16.3
ipykernel=5.1.3
transformers=4.1.1
pip:
joblib==0.13.2
scikit-learn==0.21.2
spacy==2.1.4
torch==1.1.0

Since all these dependencies have got their upgraded versions. Do we still need to install these specific versions? or it's fine to have the latest one. More specifically can't I use torch 1.8.0
@doguaraci @theofpa @pvdb2178

from finbert.

doguaraci avatar doguaraci commented on July 20, 2024

What you mean by running Google colab? Are you trying to say I should train the whole model again or something else. I am a bit confused with your statement.

I suggested this as an alternative to running on Windows. You can run any part of code on Google colab. Unless you are planning to use FinBERT on a production system, Colab is a good option.

from finbert.

doguaraci avatar doguaraci commented on July 20, 2024

One more thing to add. In the environemnt.yml file, there are dependencies with their versions mentioned. Like this

jupyter=1.0.0
pandas=0.23.4
python=3.7.3
numpy==1.16.3
ipykernel=5.1.3
transformers=4.1.1
pip:
joblib==0.13.2
scikit-learn==0.21.2
spacy==2.1.4
torch==1.1.0

Since all these dependencies have got their upgraded versions. Do we still need to install these specific versions? or it's fine to have the latest one. More specifically can't I use torch 1.8.0

Those versions are the ones we tested and verified the code for. You can of course try with torch 1.8.0. It'd probably work, but hard to tell without trying.

from finbert.

tahapandoratech avatar tahapandoratech commented on July 20, 2024

Can you please send me the steps how to run finbert on google colab.

from finbert.

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.