Token Classification
Transformers
Safetensors
English
bert
wastewater
water-treatment
named-entity-recognition
Instructions to use Mudi12137/WaterBERT-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mudi12137/WaterBERT-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Mudi12137/WaterBERT-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mudi12137/WaterBERT-NER") model = AutoModelForTokenClassification.from_pretrained("Mudi12137/WaterBERT-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from Mudi12137/WaterBERT-NER: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/Mudi12137/WaterBERT-NER/resolve/main/label_map.json
- Command line
-
hf download hf://Mudi12137/WaterBERT-NER/label_map.json
-
curl -L -o label_map.json https://huggingface.co/Mudi12137/WaterBERT-NER/resolve/main/label_map.json
1.1 kB
| { | |
| "label_list": [ | |
| "O", | |
| "B-Pollutant", | |
| "I-Pollutant", | |
| "B-Wastewater_Treatment_Process", | |
| "I-Wastewater_Treatment_Process", | |
| "B-Reactor", | |
| "I-Reactor", | |
| "B-Treatment_Parameter", | |
| "I-Treatment_Parameter", | |
| "B-Microorganism", | |
| "I-Microorganism", | |
| "B-Dosed_Material", | |
| "I-Dosed_Material" | |
| ], | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-Pollutant", | |
| "2": "I-Pollutant", | |
| "3": "B-Wastewater_Treatment_Process", | |
| "4": "I-Wastewater_Treatment_Process", | |
| "5": "B-Reactor", | |
| "6": "I-Reactor", | |
| "7": "B-Treatment_Parameter", | |
| "8": "I-Treatment_Parameter", | |
| "9": "B-Microorganism", | |
| "10": "I-Microorganism", | |
| "11": "B-Dosed_Material", | |
| "12": "I-Dosed_Material" | |
| }, | |
| "label2id": { | |
| "O": 0, | |
| "B-Pollutant": 1, | |
| "I-Pollutant": 2, | |
| "B-Wastewater_Treatment_Process": 3, | |
| "I-Wastewater_Treatment_Process": 4, | |
| "B-Reactor": 5, | |
| "I-Reactor": 6, | |
| "B-Treatment_Parameter": 7, | |
| "I-Treatment_Parameter": 8, | |
| "B-Microorganism": 9, | |
| "I-Microorganism": 10, | |
| "B-Dosed_Material": 11, | |
| "I-Dosed_Material": 12 | |
| } | |
| } |