-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Create README.md #8223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Create README.md #8223
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
model_cards/bionlp/bluebert_pubmed_uncased_L-12_H-768_A-12/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| language: | ||
| - en | ||
| tags: | ||
| - bluebert | ||
| - bert | ||
| license: | ||
| - PUBLIC DOMAIN NOTICE | ||
| datasets: | ||
| - PubMed | ||
julien-c marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| --- | ||
|
|
||
| # BlueBert-Base, Uncased, PubMed | ||
|
|
||
| ## Model description | ||
|
|
||
| A BERT model pre-trained on PubMed abstracts | ||
|
|
||
| ## Intended uses & limitations | ||
|
|
||
| #### How to use | ||
|
|
||
| Please see https://github.com/ncbi-nlp/bluebert | ||
|
|
||
| ## Training data | ||
|
|
||
| We provide [preprocessed PubMed texts](https://ftp.ncbi.nlm.nih.gov/pub/lu/Suppl/NCBI-BERT/pubmed_uncased_sentence_nltk.txt.tar.gz) that were used to pre-train the BlueBERT models. | ||
| The corpus contains ~4000M words extracted from the [PubMed ASCII code version](https://www.ncbi.nlm.nih.gov/research/bionlp/APIs/BioC-PubMed/). | ||
|
|
||
| Pre-trained model: https://huggingface.co/bert-base-uncased | ||
|
|
||
| ## Training procedure | ||
|
|
||
| * lowercasing the text | ||
| * removing speical chars `\x00`-`\x7F` | ||
| * tokenizing the text using the [NLTK Treebank tokenizer](https://www.nltk.org/_modules/nltk/tokenize/treebank.html) | ||
|
|
||
| Below is a code snippet for more details. | ||
|
|
||
| ```python | ||
| value = value.lower() | ||
| value = re.sub(r'[\r\n]+', ' ', value) | ||
| value = re.sub(r'[^\x00-\x7F]+', ' ', value) | ||
|
|
||
| tokenized = TreebankWordTokenizer().tokenize(value) | ||
| sentence = ' '.join(tokenized) | ||
| sentence = re.sub(r"\s's\b", "'s", sentence) | ||
| ``` | ||
|
|
||
| ### BibTeX entry and citation info | ||
|
|
||
| ```bibtex | ||
| @InProceedings{peng2019transfer, | ||
| author = {Yifan Peng and Shankai Yan and Zhiyong Lu}, | ||
| title = {Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets}, | ||
| booktitle = {Proceedings of the 2019 Workshop on Biomedical Natural Language Processing (BioNLP 2019)}, | ||
| year = {2019}, | ||
| pages = {58--65}, | ||
| } | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.