Instructions to use ClauseWise/legalbert-clause-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ClauseWise/legalbert-clause-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ClauseWise/legalbert-clause-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ClauseWise/legalbert-clause-classifier") model = AutoModelForSequenceClassification.from_pretrained("ClauseWise/legalbert-clause-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BertForSequenceClassification
Browse files- config.json +67 -67
config.json
CHANGED
|
@@ -11,76 +11,76 @@
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
-
"0": "
|
| 15 |
-
"1": "
|
| 16 |
-
"2": "
|
| 17 |
-
"3": "
|
| 18 |
-
"4": "
|
| 19 |
-
"5": "
|
| 20 |
-
"6": "
|
| 21 |
-
"7": "
|
| 22 |
-
"8": "
|
| 23 |
-
"9": "
|
| 24 |
-
"10": "
|
| 25 |
-
"11": "
|
| 26 |
-
"12": "
|
| 27 |
-
"13": "
|
| 28 |
-
"14": "
|
| 29 |
-
"15": "
|
| 30 |
-
"16": "
|
| 31 |
-
"17": "
|
| 32 |
-
"18": "
|
| 33 |
-
"19": "
|
| 34 |
-
"20": "
|
| 35 |
-
"21": "
|
| 36 |
-
"22": "
|
| 37 |
-
"23": "
|
| 38 |
-
"24": "
|
| 39 |
-
"25": "
|
| 40 |
-
"26": "
|
| 41 |
-
"27": "
|
| 42 |
-
"28": "
|
| 43 |
-
"29": "
|
| 44 |
-
"30": "
|
| 45 |
-
"31": "
|
| 46 |
-
"32": "
|
| 47 |
},
|
| 48 |
"initializer_range": 0.02,
|
| 49 |
"intermediate_size": 3072,
|
| 50 |
"label2id": {
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
"
|
| 55 |
-
"
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"
|
| 62 |
-
"
|
| 63 |
-
"
|
| 64 |
-
"
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
-
"
|
| 72 |
-
"
|
| 73 |
-
"
|
| 74 |
-
"
|
| 75 |
-
"
|
| 76 |
-
"
|
| 77 |
-
"
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"
|
| 83 |
-
"
|
| 84 |
},
|
| 85 |
"layer_norm_eps": 1e-12,
|
| 86 |
"max_position_embeddings": 512,
|
|
@@ -91,7 +91,7 @@
|
|
| 91 |
"pad_token_id": 0,
|
| 92 |
"position_embedding_type": "absolute",
|
| 93 |
"problem_type": "multi_label_classification",
|
| 94 |
-
"transformers_version": "4.57.
|
| 95 |
"type_vocab_size": 2,
|
| 96 |
"use_cache": true,
|
| 97 |
"vocab_size": 30522
|
|
|
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
"id2label": {
|
| 14 |
+
"0": "Non-Disparagement",
|
| 15 |
+
"1": "Anti-Assignment",
|
| 16 |
+
"2": "Minimum Commitment",
|
| 17 |
+
"3": "License Grant",
|
| 18 |
+
"4": "Audit Rights",
|
| 19 |
+
"5": "Cap On Liability",
|
| 20 |
+
"6": "Warranty Duration",
|
| 21 |
+
"7": "Most Favored Nation",
|
| 22 |
+
"8": "Termination For Convenience",
|
| 23 |
+
"9": "Revenue/Profit Sharing",
|
| 24 |
+
"10": "Unlimited/All-You-Can-Eat-License",
|
| 25 |
+
"11": "Uncapped Liability",
|
| 26 |
+
"12": "Exclusivity",
|
| 27 |
+
"13": "Affiliate License-Licensee",
|
| 28 |
+
"14": "Change Of Control",
|
| 29 |
+
"15": "Non-Transferable License",
|
| 30 |
+
"16": "Rofr/Rofo/Rofn",
|
| 31 |
+
"17": "Irrevocable Or Perpetual License",
|
| 32 |
+
"18": "Competitive Restriction Exception",
|
| 33 |
+
"19": "Non-Compete",
|
| 34 |
+
"20": "Price Restrictions",
|
| 35 |
+
"21": "Covenant Not To Sue",
|
| 36 |
+
"22": "Volume Restriction",
|
| 37 |
+
"23": "Joint Ip Ownership",
|
| 38 |
+
"24": "Ip Ownership Assignment",
|
| 39 |
+
"25": "Post-Termination Services",
|
| 40 |
+
"26": "Insurance",
|
| 41 |
+
"27": "Affiliate License-Licensor",
|
| 42 |
+
"28": "No-Solicit Of Customers",
|
| 43 |
+
"29": "No-Solicit Of Employees",
|
| 44 |
+
"30": "Liquidated Damages",
|
| 45 |
+
"31": "Third Party Beneficiary",
|
| 46 |
+
"32": "Source Code Escrow"
|
| 47 |
},
|
| 48 |
"initializer_range": 0.02,
|
| 49 |
"intermediate_size": 3072,
|
| 50 |
"label2id": {
|
| 51 |
+
"Affiliate License-Licensee": 13,
|
| 52 |
+
"Affiliate License-Licensor": 27,
|
| 53 |
+
"Anti-Assignment": 1,
|
| 54 |
+
"Audit Rights": 4,
|
| 55 |
+
"Cap On Liability": 5,
|
| 56 |
+
"Change Of Control": 14,
|
| 57 |
+
"Competitive Restriction Exception": 18,
|
| 58 |
+
"Covenant Not To Sue": 21,
|
| 59 |
+
"Exclusivity": 12,
|
| 60 |
+
"Insurance": 26,
|
| 61 |
+
"Ip Ownership Assignment": 24,
|
| 62 |
+
"Irrevocable Or Perpetual License": 17,
|
| 63 |
+
"Joint Ip Ownership": 23,
|
| 64 |
+
"License Grant": 3,
|
| 65 |
+
"Liquidated Damages": 30,
|
| 66 |
+
"Minimum Commitment": 2,
|
| 67 |
+
"Most Favored Nation": 7,
|
| 68 |
+
"No-Solicit Of Customers": 28,
|
| 69 |
+
"No-Solicit Of Employees": 29,
|
| 70 |
+
"Non-Compete": 19,
|
| 71 |
+
"Non-Disparagement": 0,
|
| 72 |
+
"Non-Transferable License": 15,
|
| 73 |
+
"Post-Termination Services": 25,
|
| 74 |
+
"Price Restrictions": 20,
|
| 75 |
+
"Revenue/Profit Sharing": 9,
|
| 76 |
+
"Rofr/Rofo/Rofn": 16,
|
| 77 |
+
"Source Code Escrow": 32,
|
| 78 |
+
"Termination For Convenience": 8,
|
| 79 |
+
"Third Party Beneficiary": 31,
|
| 80 |
+
"Uncapped Liability": 11,
|
| 81 |
+
"Unlimited/All-You-Can-Eat-License": 10,
|
| 82 |
+
"Volume Restriction": 22,
|
| 83 |
+
"Warranty Duration": 6
|
| 84 |
},
|
| 85 |
"layer_norm_eps": 1e-12,
|
| 86 |
"max_position_embeddings": 512,
|
|
|
|
| 91 |
"pad_token_id": 0,
|
| 92 |
"position_embedding_type": "absolute",
|
| 93 |
"problem_type": "multi_label_classification",
|
| 94 |
+
"transformers_version": "4.57.3",
|
| 95 |
"type_vocab_size": 2,
|
| 96 |
"use_cache": true,
|
| 97 |
"vocab_size": 30522
|