Instructions to use bisalsaha/bart-trade-doc-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bisalsaha/bart-trade-doc-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bisalsaha/bart-trade-doc-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bisalsaha/bart-trade-doc-classifier") model = AutoModelForSequenceClassification.from_pretrained("bisalsaha/bart-trade-doc-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BartForSequenceClassification
Browse files- config.json +20 -12
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -26,23 +26,31 @@
|
|
| 26 |
"forced_eos_token_id": 2,
|
| 27 |
"gradient_checkpointing": false,
|
| 28 |
"id2label": {
|
| 29 |
-
"0": "
|
| 30 |
-
"1": "
|
| 31 |
-
"2": "
|
| 32 |
-
"3": "
|
| 33 |
-
"4": "
|
| 34 |
-
"5": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
},
|
| 36 |
"init_std": 0.02,
|
| 37 |
"is_decoder": false,
|
| 38 |
"is_encoder_decoder": true,
|
| 39 |
"label2id": {
|
| 40 |
-
"Bill of Entry":
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
},
|
| 47 |
"max_position_embeddings": 1024,
|
| 48 |
"model_type": "bart",
|
|
|
|
| 26 |
"forced_eos_token_id": 2,
|
| 27 |
"gradient_checkpointing": false,
|
| 28 |
"id2label": {
|
| 29 |
+
"0": "Commercial Invoice",
|
| 30 |
+
"1": "Bill of Lading",
|
| 31 |
+
"2": "Packing List",
|
| 32 |
+
"3": "Certificate of Origin",
|
| 33 |
+
"4": "LCA Form",
|
| 34 |
+
"5": "Letter of Credit",
|
| 35 |
+
"6": "Bill of Entry",
|
| 36 |
+
"7": "IMP Form",
|
| 37 |
+
"8": "EXP Form",
|
| 38 |
+
"9": "PRC"
|
| 39 |
},
|
| 40 |
"init_std": 0.02,
|
| 41 |
"is_decoder": false,
|
| 42 |
"is_encoder_decoder": true,
|
| 43 |
"label2id": {
|
| 44 |
+
"Bill of Entry": 6,
|
| 45 |
+
"Bill of Lading": 1,
|
| 46 |
+
"Certificate of Origin": 3,
|
| 47 |
+
"Commercial Invoice": 0,
|
| 48 |
+
"EXP Form": 8,
|
| 49 |
+
"IMP Form": 7,
|
| 50 |
+
"LCA Form": 4,
|
| 51 |
+
"Letter of Credit": 5,
|
| 52 |
+
"PRC": 9,
|
| 53 |
+
"Packing List": 2
|
| 54 |
},
|
| 55 |
"max_position_embeddings": 1024,
|
| 56 |
"model_type": "bart",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b258c9922da23890ad389cf9b98e7754bd0064d808e8911895fe8ccec543ba9
|
| 3 |
+
size 560105000
|