Giter Site home page Giter Site logo

gsarti / covid-papers-browser Goto Github PK

View Code? Open in Web Editor NEW
183.0 183.0 27.0 10.96 MB

Browse Covid-19 & SARS-CoV-2 Scientific Papers with Transformers ๐Ÿฆ  ๐Ÿ“–

Home Page: http://covidbrowser.areasciencepark.it

License: GNU General Public License v2.0

Python 4.89% Shell 0.22% Jupyter Notebook 3.68% HTML 2.09% JavaScript 18.98% CSS 70.10% Dockerfile 0.03%
biobert bionlp covid-19 natural-language-processing scibert search-engine

covid-papers-browser's Issues

error in download_scibert.py (os.rmtree)

Hello, great library! I am getting the error AttributeError: module 'os' has no attribute 'rmtree' using python 3.7.

This is fixed if os.rmtree(path) is replaced with shutil.rmtree(path)

Add argparse parametrization for the finetuning script

Similar to what is currently available in download_model.py, add Argparse with parameters in finetune_nli.py for parameters:

  • model_name, default 'models/scibert', type str

  • batch_size, default 64, type int

  • model_save_path, default 'models/scibert_nli', type str

  • num_epochs, default 2, type int

  • warmup_steps, default None, not required

  • do_mean_pooling with action='store_true'

  • do_cls_pooling with action='store_true'

  • do_max_pooling with action='store_true'

Then:

  • Add check for only one of the pooling condition to be verified (raise an AttributeError if more than one is). If none is specified, we use mean pooling strategy.

  • Check if the warmup_step parameter is set before setting it to 10% of training: if it is, keep the user-defined value.

Open Source Helps!

Thanks for your work to help the people in need! Your site has been added! I currently maintain the Open-Source-COVID-19 page, which collects all open source projects related to COVID-19, including maps, data, news, api, analysis, medical and supply information, etc. Please share to anyone who might need the information in the list, or will possibly contribute to some of those projects. You are also welcome to recommend more projects.

http://open-source-covid-19.weileizeng.com/

Cheers!

Unable to download scibert-nli after latest changes

Trying:

python scripts/download_model.py --model scibert-nli

gets:

Traceback (most recent call last):
  File "scripts/download_model.py", line 50, in <module>
    tokenizer = AutoTokenizer.from_pretrained(MODELS_PRETRAINED[args.model])
KeyError: 'scibert-nli'

Error in pip install of requirements, but still worked?

I'm on ubuntu, made a fresh conda environment and conda installed pip within it, then ran pip install -r requirements.txt

I got this

ERROR: sentence-transformers 0.2.5.1 has requirement transformers==2.3.0, but you'll have transformers 2.5.1 which is incompatible.

But then the pip install continued and apparently succeeded:
image

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.