Instructions to use SIRIS-Lab/erc-classifiers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SIRIS-Lab/erc-classifiers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SIRIS-Lab/erc-classifiers")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SIRIS-Lab/erc-classifiers") model = AutoModelForSequenceClassification.from_pretrained("SIRIS-Lab/erc-classifiers") - Notebooks
- Google Colab
- Kaggle
| { | |
| "adapters": { | |
| "adapters": {}, | |
| "config_map": {}, | |
| "fusion_config_map": {}, | |
| "fusions": {} | |
| }, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Biotechnology and Biosystems Engineering", | |
| "1": "Cell Biology, Development, Stem Cells and Regeneration", | |
| "2": "Computer Science and Informatics", | |
| "3": "Condensed Matter Physics", | |
| "4": "Earth System Science", | |
| "5": "Environmental Biology, Ecology and Evolution", | |
| "6": "Fundamental Constituents of Matter", | |
| "7": "Human Mobility, Environment, and Space", | |
| "8": "Immunity, Infection and Immunotherapy", | |
| "9": "Individuals, Markets and Organisations", | |
| "10": "Institutions, Governance and Legal Systems", | |
| "11": "Integrative Biology: from Genes and Genomes to Systems", | |
| "12": "Materials Engineering", | |
| "13": "Mathematics", | |
| "14": "Molecules of Life: Biological Mechanisms, Structures and Functions", | |
| "15": "Neuroscience and Disorders of the Nervous System", | |
| "16": "Physical and Analytical Chemical Sciences", | |
| "17": "Physiology in Health, Disease and Ageing", | |
| "18": "Prevention, Diagnosis and Treatment of Human Diseases", | |
| "19": "Products and Processes Engineering", | |
| "20": "Studies of Cultures and Arts", | |
| "21": "Synthetic Chemistry and Materials", | |
| "22": "Systems and Communication Engineering", | |
| "23": "Texts and Concepts", | |
| "24": "The Human Mind and Its Complexity", | |
| "25": "The Social World and Its Interactions", | |
| "26": "The Study of the Human Past", | |
| "27": "Universe Sciences" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Biotechnology and Biosystems Engineering": 0, | |
| "Cell Biology, Development, Stem Cells and Regeneration": 1, | |
| "Computer Science and Informatics": 2, | |
| "Condensed Matter Physics": 3, | |
| "Earth System Science": 4, | |
| "Environmental Biology, Ecology and Evolution": 5, | |
| "Fundamental Constituents of Matter": 6, | |
| "Human Mobility, Environment, and Space": 7, | |
| "Immunity, Infection and Immunotherapy": 8, | |
| "Individuals, Markets and Organisations": 9, | |
| "Institutions, Governance and Legal Systems": 10, | |
| "Integrative Biology: from Genes and Genomes to Systems": 11, | |
| "Materials Engineering": 12, | |
| "Mathematics": 13, | |
| "Molecules of Life: Biological Mechanisms, Structures and Functions": 14, | |
| "Neuroscience and Disorders of the Nervous System": 15, | |
| "Physical and Analytical Chemical Sciences": 16, | |
| "Physiology in Health, Disease and Ageing": 17, | |
| "Prevention, Diagnosis and Treatment of Human Diseases": 18, | |
| "Products and Processes Engineering": 19, | |
| "Studies of Cultures and Arts": 20, | |
| "Synthetic Chemistry and Materials": 21, | |
| "Systems and Communication Engineering": 22, | |
| "Texts and Concepts": 23, | |
| "The Human Mind and Its Complexity": 24, | |
| "The Social World and Its Interactions": 25, | |
| "The Study of the Human Past": 26, | |
| "Universe Sciences": 27 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "multi_label_classification", | |
| "transformers_version": "4.57.3", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 31090 | |
| } | |