Instructions to use adsabs/astroBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adsabs/astroBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="adsabs/astroBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("adsabs/astroBERT") model = AutoModelForPreTraining.from_pretrained("adsabs/astroBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
fixed links to tutorials
Browse filesmoved links from NB viewer to HF
README.md
CHANGED
|
@@ -68,10 +68,10 @@ This model is **cased** (it treats `ads` and `ADS` differently).
|
|
| 68 |
2. **SciX Categorizer**: This model was finetuned to classify text into one of 7 categories of interest to SciX (Astronomy, Heliophysics, Planetary Science, Earth Science, NASA-funded Biophysics, Other Physics, Other, Text Garbage).
|
| 69 |
|
| 70 |
### Tutorials
|
| 71 |
-
0. [generate text embedding (for downstream tasks)](https://
|
| 72 |
-
1. [use astroBERT for the Fill-Mask task](https://
|
| 73 |
-
2. [make NER-DEAL predictions](https://
|
| 74 |
-
3. [categorize texts for SciX](https://
|
| 75 |
|
| 76 |
|
| 77 |
### BibTeX
|
|
|
|
| 68 |
2. **SciX Categorizer**: This model was finetuned to classify text into one of 7 categories of interest to SciX (Astronomy, Heliophysics, Planetary Science, Earth Science, NASA-funded Biophysics, Other Physics, Other, Text Garbage).
|
| 69 |
|
| 70 |
### Tutorials
|
| 71 |
+
0. [generate text embedding (for downstream tasks)](https://huggingface.co/adsabs/astroBERT/blob/main/Tutorials/0_Embeddings.ipynb)
|
| 72 |
+
1. [use astroBERT for the Fill-Mask task](https://huggingface.co/adsabs/astroBERT/blob/main/Tutorials/1_Fill-Mask.ipynb)
|
| 73 |
+
2. [make NER-DEAL predictions](https://huggingface.co/adsabs/astroBERT/blob/main/Tutorials/2_NER_DEAL.ipynb)
|
| 74 |
+
3. [categorize texts for SciX](https://huggingface.co/adsabs/astroBERT/blob/main/Tutorials/3_SciX_Categorizer.ipynb)
|
| 75 |
|
| 76 |
|
| 77 |
### BibTeX
|