Upload folder using huggingface_hub
Browse files- README.md +92 -73
- config.json +1 -2
- config_sentence_transformers.json +1 -1
- config_setfit.json +8 -8
- heads/domain-router.pkl +1 -1
- heads/head_metadata.json +10 -10
- heads/materials-classifier.pkl +3 -0
- model_head.pkl +2 -2
README.md
CHANGED
@@ -5,69 +5,88 @@ tags:
|
|
5 |
- text-classification
|
6 |
- generated_from_setfit_trainer
|
7 |
widget:
|
8 |
-
- text: 'hasAdditionalInformation:
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
hasFinishedSizeHeight:
|
14 |
-
No, hasInternalID:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
4, hasTotalColoursFace: 4, hasUnitOfMeasure: Inches (in), '
|
72 |
metrics:
|
73 |
- f1_micro
|
@@ -91,22 +110,22 @@ model-index:
|
|
91 |
split: test
|
92 |
metrics:
|
93 |
- type: f1_micro
|
94 |
-
value: 0.
|
95 |
name: F1_Micro
|
96 |
- type: f1_macro
|
97 |
-
value: 0.
|
98 |
name: F1_Macro
|
99 |
- type: f1_weighted
|
100 |
-
value: 0.
|
101 |
name: F1_Weighted
|
102 |
- type: precision
|
103 |
-
value:
|
104 |
name: Precision
|
105 |
- type: accuracy
|
106 |
-
value: 0
|
107 |
name: Accuracy
|
108 |
- type: recall
|
109 |
-
value:
|
110 |
name: Recall
|
111 |
---
|
112 |
|
@@ -142,7 +161,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
142 |
### Metrics
|
143 |
| Label | F1_Micro | F1_Macro | F1_Weighted | Precision | Accuracy | Recall |
|
144 |
|:--------|:---------|:---------|:------------|:----------|:---------|:-------|
|
145 |
-
| **all** | 0.
|
146 |
|
147 |
## Uses
|
148 |
|
@@ -162,7 +181,7 @@ from setfit import SetFitModel
|
|
162 |
# Download from the 🤗 Hub
|
163 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
164 |
# Run inference
|
165 |
-
preds = model("hasCreatedDate: 2024-
|
166 |
```
|
167 |
|
168 |
<!--
|
@@ -194,13 +213,13 @@ preds = model("hasCreatedDate: 2024-11-20, hasCustomerHomeCountry: United States
|
|
194 |
### Training Set Metrics
|
195 |
| Training set | Min | Median | Max |
|
196 |
|:-------------|:----|:---------|:----|
|
197 |
-
| Word count |
|
198 |
|
199 |
### Framework Versions
|
200 |
- Python: 3.10.16
|
201 |
- SetFit: 1.1.1
|
202 |
- Sentence Transformers: 3.4.1
|
203 |
-
- Transformers: 4.
|
204 |
- PyTorch: 2.6.0+cu124
|
205 |
- Datasets: 3.4.1
|
206 |
- Tokenizers: 0.21.1
|
|
|
5 |
- text-classification
|
6 |
- generated_from_setfit_trainer
|
7 |
widget:
|
8 |
+
- text: 'hasAdditionalInformation: INKS MUST CREATE A MATT FINISH ON THE GLOSS/SILK
|
9 |
+
STOCK SO THAT UNPRINTED AREAS HAVE A SHEEN BUT PRINTED AREAS ARE MATT, hasColourDetails:
|
10 |
+
4/0, hasCreatedDate: 2024-07-08, hasCustomerHomeCountry: United Kingdom, hasCustomerID:
|
11 |
+
37488, hasCustomerName: Imperial Tobacco Ltd UK(Imperial Tobacco Ltd UK), hasCutting:
|
12 |
+
Trim to size, hasElementID: 3386416, hasElementTitle: HHG0008F - 1m Ultimax Left
|
13 |
+
Gantry Door Graphics, hasFinishedSizeHeight: 1442, hasFinishedSizeWidth: 456,
|
14 |
+
hasFscPaperBeenSpecified: No, hasInternalID: a3ca1845-9a18-4bdf-8a68-d4de1610c4b9,
|
15 |
+
hasMaterialCategory: Plastic, hasMaterialDescription: Mactac JT8500 white matt
|
16 |
+
permanent, hasMaterialRecycledPercentage: 0%, hasMaterialThicknessOrWeight: 200,
|
17 |
+
hasMaterialType: PVC, hasMaterialUnitOfMeasure: GSM, hasNumberOfVersions: 1, hasPackingRequirements:
|
18 |
+
Collate with HHG0009F Graphic for right door. Roll and pack as required for delivery
|
19 |
+
to two UK addresses. 15 to 100% Group Ltd Stretton Green Industrial Park WA4
|
20 |
+
4TQ 25 to Keslers London - 15/16 Hickman Avenue, Highams Park, E4 9JG, hasPressWetProofQuantity:
|
21 |
+
1, hasPrice: 267.2, hasPrintedSides: Single sided, hasProductCategory: Wallpapers/Decals,
|
22 |
+
hasProofType: PDF digital proof,Press / wet proof, hasQuantity: 40, hasRecycledContentBeenOffered:
|
23 |
+
No, hasSendToDetails: Claire Jackway Imperial Brands Bristol, hasSupplierName:
|
24 |
+
RDD Europe Ltd(RDD Europe Ltd), hasTotalColours: 4, hasUnitOfMeasure: Millimetres
|
25 |
+
(mm), '
|
26 |
+
- text: 'hasAdditionalInformation: 1. Mobil 1 Oil + Filter $35.99 / Castrol Edge Oil
|
27 |
+
+ Filter $36.998 2. Lucas Fuel Treatment 2 for $9.99 / AutoZone Rewards (Sign
|
28 |
+
Up and Start Earning Rewards Today)8 3. Duralast Brakes Save 15% / America''s
|
29 |
+
#1 Brake Destination (Interior)8 4. Military / Free Fix Finder Service8, hasColourDetails:
|
30 |
+
4cp + PMS 165 (Digital Conversion), hasCreatedDate: 2024-02-05, hasCustomerHomeCountry:
|
31 |
+
United States, hasCustomerID: 31736, hasCustomerName: AutoZone(AutoZone), hasCutting:
|
32 |
+
Trim to size, hasElementID: 3104271, hasElementTitle: P8 FY24 Window Signs - AK
|
33 |
+
DS, hasFinishedSizeHeight: 54.875, hasFinishedSizeWidth: 34.785, hasFscPaperBeenSpecified:
|
34 |
+
No, hasInternalID: a7d3fbaa-0478-4e58-a2c0-9e8bed8b3b7a, hasMaterialCategory:
|
35 |
+
Other, hasMaterialDescription: 8 mil White Static Cling with Barrier Film for
|
36 |
+
Opacity, hasMaterialType: Other, hasNumberOfVersions: 4, hasPackingRequirements:
|
37 |
+
Pack and ship according to Distro., hasPrice: 5750.58, hasPrintedSides: Single
|
38 |
+
sided, hasProofType: PDF digital proof, hasQuantity: 32, hasRecycledContentBeenOffered:
|
39 |
+
No, hasSendToDetails: [email protected], hasSupplierName: Coyle Reproductions-HHG
|
40 |
+
Strategic Partner(Coyle Reproductions - 35576 - HHGSP - US Only), hasTotalColours:
|
41 |
+
4, hasUnitOfMeasure: Inches (in), '
|
42 |
+
- text: 'hasCreatedDate: 2024-05-09, hasCustomerHomeCountry: United States, hasCustomerID:
|
43 |
+
16861, hasCustomerName: Lowe''s/HHG Fully Vendor Supported(Lowe''s/HHG Fully Vendor
|
44 |
+
Supported), hasCutting: Trim to size, hasElementID: 3278938, hasElementTitle:
|
45 |
+
G286962 FLEX SE EGO 4354080, 4354082, 2546173 - 769 Seasonal EC Header 102 x 40
|
46 |
+
SS APR FY24, hasFinishedSizeHeight: 40, hasFinishedSizeWidth: 102, hasFlatSizeHeight:
|
47 |
+
40, hasFlatSizeWidth: 102, hasFscPaperBeenSpecified: No, hasHardwareRequirements:
|
48 |
+
12 x Kinter Part # 130565 Loop Style Locking Strap, hasInternalID: c512c70d-2cfe-4acc-a706-da62bf174837,
|
49 |
+
hasMachineFinishing: Yes, hasMachineFinishingDetails: Trim to Size, 12 punches
|
50 |
+
across the top, soft roll in to 4” tube to fit in box for shipping purposes, hasMaterialCategory:
|
51 |
+
Other, hasMaterialDescription: .015 Rigid Vinyl, hasMaterialType: Other, hasNumberOfVersions:
|
52 |
+
1, hasPrice: 17723.01, hasPrintedSides: Single sided, hasProofType: PDF digital
|
53 |
+
proof, hasQuantity: 589, hasRecycledContentBeenOffered: N/A, hasSupplierName:
|
54 |
+
LPC TX VISUAL, LLC(LPC TX Visual, LLC/Lewisberg Printing -HHGSP), hasTotalColours:
|
55 |
+
4, hasUnitOfMeasure: Inches (in), '
|
56 |
+
- text: 'hasCreatedDate: 2024-12-26, hasCustomerHomeCountry: United States, hasCustomerID:
|
57 |
+
23483, hasCustomerName: T-Mobile USA, Inc.(T-Mobile USA, Inc.), hasCutting: Trim
|
58 |
+
to size, hasElementID: 3715867, hasElementTitle: CORE Apple Fabric Fixture C609985-T687344,
|
59 |
+
hasFinishedSizeHeight: 29.69, hasFinishedSizeWidth: 62.6, hasFscPaperBeenSpecified:
|
60 |
+
No, hasInternalID: d032e5c5-cdc3-476a-9647-e9642615e934, hasMachineFinishing:
|
61 |
+
Yes, hasMachineFinishingDetails: DRT cut. Sew 3mm x 13.33mm bead around all edges.,
|
62 |
+
hasMaterialCategory: Textiles, hasMaterialDescription: Celtic NON Backlit Fabric,
|
63 |
+
hasMaterialType: Cotton, hasMinimumRecycledContent: 0%, hasNumberOfVersions: 1,
|
64 |
+
hasPackingRequirements: Test fit and take pictures. Carefully flop fold and poly
|
65 |
+
bag with install guide. Label the poly bags with SKU specific label., hasPrice:
|
66 |
+
654.46, hasPrintedSides: Single sided, hasProductCategory: Indoor/Outdoor Signage,
|
67 |
+
hasProofType: PDF digital proof, hasQuantity: 16, hasRecycledContentBeenRequested:
|
68 |
+
No, hasSupplierName: The IMAGINE Group, LLC(The IMAGINE Group, LLC – HHGSP), hasTotalColours:
|
69 |
+
4, hasUnitOfMeasure: Inches (in), '
|
70 |
+
- text: 'coloursToFaceAndReverseAreSame: Yes, hasAdditionalInformation: LINE 02 REVISION
|
71 |
+
IS FOR QUANTITY ONLY. ALL SPEC''S SAME AS LINE 01. PLEASE NOTE SCHEDULE FOR
|
72 |
+
THIS PROJECT, hasArtworkDoubleSidedStatus: Double Sided Different, hasCoatingOrSealer:
|
73 |
+
Aqueous, hasColourDetails: prints 4/4 - process 4/c + OA Satin AQ (not required
|
74 |
+
if printing digitally), hasCreatedDate: 2025-01-11, hasCustomerHomeCountry: United
|
75 |
+
States, hasCustomerID: 12231, hasCustomerName: Janssen Pharmaceuticals, Inc(Janssen
|
76 |
+
Pharmaceuticals, Inc), hasCutting: Trim to size, hasElementID: 3735612, hasElementTitle:
|
77 |
+
cp-118514v9 - J&J WithMe Getting Started Tearpad, hasFinishedSizeHeight: 11,
|
78 |
+
hasFinishedSizeWidth: 8.5, hasFlatSizeHeight: 11, hasFlatSizeWidth: 8.5, hasFscPaperBeenSpecified:
|
79 |
+
Yes, hasInternalID: 5a8da45d-022d-454b-a2d6-0fc64349347f, hasMachineFinishing:
|
80 |
+
Yes, hasMachineFinishingDetails: Pad in 25''s. Pad across 8.5 dimension. Standard
|
81 |
+
chipboard backer. Bulk pack., hasMaterialCategory: Paper, hasMaterialDescription:
|
82 |
+
uncoated text, hasMaterialRecycledPercentage: 0%, hasMaterialThicknessOrWeight:
|
83 |
+
70, hasMaterialType: Paper and board, hasMaterialUnitOfMeasure: Pounds (lbs),
|
84 |
+
hasNumberOfVersions: 1, hasPackingRequirements: 300 will ship to POA - see next
|
85 |
+
element for drop ships - balance will ship to Harte Hanks, hasPaperType: Text,
|
86 |
+
hasPrice: 10446.0, hasPrintedSides: Double sided, hasProductCategory: Booklets
|
87 |
+
& Brochures, hasProofType: PDF digital proof, hasQuantity: 7000, hasRecycledContentBeenOffered:
|
88 |
+
Yes, hasSendToDetails: via MCS to Chris Quinn and BNO and Kristina at FCB, hasSupplierName:
|
89 |
+
Capital Printing Corporation(Capital Printing Corp. - 18444 - HHGSP), hasTotalColours:
|
90 |
4, hasTotalColoursFace: 4, hasUnitOfMeasure: Inches (in), '
|
91 |
metrics:
|
92 |
- f1_micro
|
|
|
110 |
split: test
|
111 |
metrics:
|
112 |
- type: f1_micro
|
113 |
+
value: 0.0
|
114 |
name: F1_Micro
|
115 |
- type: f1_macro
|
116 |
+
value: 0.0
|
117 |
name: F1_Macro
|
118 |
- type: f1_weighted
|
119 |
+
value: 0.0
|
120 |
name: F1_Weighted
|
121 |
- type: precision
|
122 |
+
value: .nan
|
123 |
name: Precision
|
124 |
- type: accuracy
|
125 |
+
value: 1.0
|
126 |
name: Accuracy
|
127 |
- type: recall
|
128 |
+
value: .nan
|
129 |
name: Recall
|
130 |
---
|
131 |
|
|
|
161 |
### Metrics
|
162 |
| Label | F1_Micro | F1_Macro | F1_Weighted | Precision | Accuracy | Recall |
|
163 |
|:--------|:---------|:---------|:------------|:----------|:---------|:-------|
|
164 |
+
| **all** | 0.0 | 0.0 | 0.0 | nan | 1.0 | nan |
|
165 |
|
166 |
## Uses
|
167 |
|
|
|
181 |
# Download from the 🤗 Hub
|
182 |
model = SetFitModel.from_pretrained("setfit_model_id")
|
183 |
# Run inference
|
184 |
+
preds = model("hasCreatedDate: 2024-12-26, hasCustomerHomeCountry: United States, hasCustomerID: 23483, hasCustomerName: T-Mobile USA, Inc.(T-Mobile USA, Inc.), hasCutting: Trim to size, hasElementID: 3715867, hasElementTitle: CORE Apple Fabric Fixture C609985-T687344, hasFinishedSizeHeight: 29.69, hasFinishedSizeWidth: 62.6, hasFscPaperBeenSpecified: No, hasInternalID: d032e5c5-cdc3-476a-9647-e9642615e934, hasMachineFinishing: Yes, hasMachineFinishingDetails: DRT cut. Sew 3mm x 13.33mm bead around all edges., hasMaterialCategory: Textiles, hasMaterialDescription: Celtic NON Backlit Fabric, hasMaterialType: Cotton, hasMinimumRecycledContent: 0%, hasNumberOfVersions: 1, hasPackingRequirements: Test fit and take pictures. Carefully flop fold and poly bag with install guide. Label the poly bags with SKU specific label., hasPrice: 654.46, hasPrintedSides: Single sided, hasProductCategory: Indoor/Outdoor Signage, hasProofType: PDF digital proof, hasQuantity: 16, hasRecycledContentBeenRequested: No, hasSupplierName: The IMAGINE Group, LLC(The IMAGINE Group, LLC – HHGSP), hasTotalColours: 4, hasUnitOfMeasure: Inches (in), ")
|
185 |
```
|
186 |
|
187 |
<!--
|
|
|
213 |
### Training Set Metrics
|
214 |
| Training set | Min | Median | Max |
|
215 |
|:-------------|:----|:---------|:----|
|
216 |
+
| Word count | 62 | 210.1813 | 431 |
|
217 |
|
218 |
### Framework Versions
|
219 |
- Python: 3.10.16
|
220 |
- SetFit: 1.1.1
|
221 |
- Sentence Transformers: 3.4.1
|
222 |
+
- Transformers: 4.50.3
|
223 |
- PyTorch: 2.6.0+cu124
|
224 |
- Datasets: 3.4.1
|
225 |
- Tokenizers: 0.21.1
|
config.json
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "avsolatorio/GIST-small-Embedding-v0",
|
3 |
"architectures": [
|
4 |
"BertModel"
|
5 |
],
|
@@ -24,7 +23,7 @@
|
|
24 |
"pad_token_id": 0,
|
25 |
"position_embedding_type": "absolute",
|
26 |
"torch_dtype": "float32",
|
27 |
-
"transformers_version": "4.
|
28 |
"type_vocab_size": 2,
|
29 |
"use_cache": true,
|
30 |
"vocab_size": 30522
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"BertModel"
|
4 |
],
|
|
|
23 |
"pad_token_id": 0,
|
24 |
"position_embedding_type": "absolute",
|
25 |
"torch_dtype": "float32",
|
26 |
+
"transformers_version": "4.50.3",
|
27 |
"type_vocab_size": 2,
|
28 |
"use_cache": true,
|
29 |
"vocab_size": 30522
|
config_sentence_transformers.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
"sentence_transformers": "3.4.1",
|
4 |
-
"transformers": "4.
|
5 |
"pytorch": "2.6.0+cu124"
|
6 |
},
|
7 |
"prompts": {},
|
|
|
1 |
{
|
2 |
"__version__": {
|
3 |
"sentence_transformers": "3.4.1",
|
4 |
+
"transformers": "4.50.3",
|
5 |
"pytorch": "2.6.0+cu124"
|
6 |
},
|
7 |
"prompts": {},
|
config_setfit.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
{
|
2 |
"labels": [
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
],
|
12 |
"normalize_embeddings": false
|
13 |
}
|
|
|
1 |
{
|
2 |
"labels": [
|
3 |
+
"SupplierDomain",
|
4 |
+
"ManufacturingDomain",
|
5 |
+
"FeatureDomain",
|
6 |
+
"ProductDomain",
|
7 |
+
"MaterialDomain",
|
8 |
+
"AssemblyDomain",
|
9 |
+
"MeasurementDomain",
|
10 |
+
"ShippingAndHandlingDomain"
|
11 |
],
|
12 |
"normalize_embeddings": false
|
13 |
}
|
heads/domain-router.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 28404
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53f3ac0a9aed415cb7287045ba32c37dbc7b08bac289d498c02719307970a57d
|
3 |
size 28404
|
heads/head_metadata.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
[
|
2 |
{
|
3 |
-
"name": "
|
4 |
-
"dataset_name": "Northell/ros-classifiers-
|
5 |
-
"dataset_revision":
|
6 |
-
"num_classes":
|
7 |
"metrics": {
|
8 |
-
"f1_micro": 0.
|
9 |
-
"f1_macro": 0.
|
10 |
-
"f1_weighted": 0.
|
11 |
-
"precision": 0
|
12 |
-
"accuracy": 0.
|
13 |
-
"recall": 0.
|
14 |
},
|
15 |
"pkl_cache": null
|
16 |
}
|
|
|
1 |
[
|
2 |
{
|
3 |
+
"name": "materials-classifier",
|
4 |
+
"dataset_name": "Northell/ros-classifiers-materials-flat",
|
5 |
+
"dataset_revision": "dev",
|
6 |
+
"num_classes": 42,
|
7 |
"metrics": {
|
8 |
+
"f1_micro": 0.04878048780487805,
|
9 |
+
"f1_macro": 0.0018315018315018315,
|
10 |
+
"f1_weighted": 0.04807692307692308,
|
11 |
+
"precision": 1.0,
|
12 |
+
"accuracy": 0.9767857193946838,
|
13 |
+
"recall": 0.02500000037252903
|
14 |
},
|
15 |
"pkl_cache": null
|
16 |
}
|
heads/materials-classifier.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d23f7304512583e81621968eca047d42e789a290d877702729815ec8c3d91640
|
3 |
+
size 61652
|
model_head.pkl
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:40a56a4058f11ffb81f526460cb0cf9983c6329ab7a2b10f7abce04d89127380
|
3 |
+
size 1716
|