Instructions to use m1969m/bert-base-cased-sci-units-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use m1969m/bert-base-cased-sci-units-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="m1969m/bert-base-cased-sci-units-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("m1969m/bert-base-cased-sci-units-ner") model = AutoModelForTokenClassification.from_pretrained("m1969m/bert-base-cased-sci-units-ner") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse filesAdd description of use and limitations.
README.md
CHANGED
|
@@ -33,16 +33,29 @@ It achieves the following results on the evaluation set:
|
|
| 33 |
## Model description
|
| 34 |
|
| 35 |
The model has been trained to perform token classification task by training the bert-base-cased model. The tokens to be classified correspond to
|
| 36 |
-
the values and units of scientific measurements.
|
| 37 |
|
| 38 |
For example in the sentence:
|
|
|
|
| 39 |
"Place the seeds in a refrigerator at 4°C along with a small amount of water for 2-3 days."
|
| 40 |
|
| 41 |
The model will select "4°C" and identify the value as 4 and the unit as °C
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
## Intended uses & limitations
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Training and evaluation data
|
| 48 |
|
|
|
|
| 33 |
## Model description
|
| 34 |
|
| 35 |
The model has been trained to perform token classification task by training the bert-base-cased model. The tokens to be classified correspond to
|
| 36 |
+
the values and units of scientific measurements.
|
| 37 |
|
| 38 |
For example in the sentence:
|
| 39 |
+
|
| 40 |
"Place the seeds in a refrigerator at 4°C along with a small amount of water for 2-3 days."
|
| 41 |
|
| 42 |
The model will select "4°C" and identify the value as 4 and the unit as °C
|
| 43 |
|
| 44 |
+
"Centrifuge at 863g for 5 min at room temperature (18–28°C), decant supernatant and resuspend cells in culture medium."
|
| 45 |
+
|
| 46 |
+
The model will identify to value-unit combinations:
|
| 47 |
+
|
| 48 |
+
- VALUE : 863, UNIT: g
|
| 49 |
+
- VALUE : 18 - 28, UNIT: '°C'
|
| 50 |
+
|
| 51 |
## Intended uses & limitations
|
| 52 |
|
| 53 |
+
Identify VALUES and scientific UNITS from a sentence.
|
| 54 |
+
|
| 55 |
+
This is a work in progress and currently only identifies the units:
|
| 56 |
+
- Temperature: '°C'
|
| 57 |
+
- Mass (grams): 'g, ug, mg'
|
| 58 |
+
- Volume (L): 'L, uL, mL'
|
| 59 |
|
| 60 |
## Training and evaluation data
|
| 61 |
|