Instructions to use tomerRest/line_item_categories with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tomerRest/line_item_categories with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tomerRest/line_item_categories")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tomerRest/line_item_categories") model = AutoModelForSequenceClassification.from_pretrained("tomerRest/line_item_categories", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "inference_model2", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "Beverages_Alcoholic Beverages_Beers and Ciders", | |
| "1": "Beverages_Alcoholic Beverages_Spirits", | |
| "2": "Beverages_Alcoholic Beverages_Wines", | |
| "3": "Beverages_Non-Alcoholic Beverages_Hot Beverages", | |
| "4": "Beverages_Non-Alcoholic Beverages_Juices", | |
| "5": "Beverages_Non-Alcoholic Beverages_Other", | |
| "6": "Beverages_Non-Alcoholic Beverages_Soft Drinks", | |
| "7": "Beverages_Non-Alcoholic Beverages_Water", | |
| "8": "Cleaning and Packaging Products_Cleaning Supplies_Cleaning Liquids", | |
| "9": "Cleaning and Packaging Products_Cleaning Supplies_Gloves", | |
| "10": "Cleaning and Packaging Products_Cleaning Supplies_Other", | |
| "11": "Cleaning and Packaging Products_Other_Other", | |
| "12": "Cleaning and Packaging Products_Packaging_Lids", | |
| "13": "Cleaning and Packaging Products_Packaging_Other", | |
| "14": "Food_Dairy_Cheese", | |
| "15": "Food_Dairy_Cream", | |
| "16": "Food_Dairy_Non-dairy substitutes", | |
| "17": "Food_Dairy_Other", | |
| "18": "Food_Dairy_milk", | |
| "19": "Food_Dry and Canned Goods_Baked Goods and Snacks", | |
| "20": "Food_Dry and Canned Goods_Baking Supplies", | |
| "21": "Food_Dry and Canned Goods_Condiments, Sauces, and Spreads", | |
| "22": "Food_Dry and Canned Goods_Other", | |
| "23": "Food_Dry and Canned Goods_Nuts, Seeds, and Grains", | |
| "24": "Food_Fresh Produce_Eggs", | |
| "25": "Food_Fresh Produce_Fruit", | |
| "26": "Food_Fresh Produce_Other", | |
| "27": "Food_Fresh Produce_Vegetables", | |
| "28": "Food_Herbs and Spices_Herbs", | |
| "29": "Food_Herbs and Spices_Spices", | |
| "30": "Food_Meat and Seafood_Meat and Meat Products", | |
| "31": "Food_Meat and Seafood_Seafood", | |
| "32": "Food_Oils and Vinegars_Oils", | |
| "33": "Food_Prepared Food_Appetizers", | |
| "34": "Food_Prepared Food_Other", | |
| "35": "Food_Sweets and Candies_Confectioneries", | |
| "36": "Food_Sweets and Candies_Other", | |
| "37": "Other_Non-Food Items_Other" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_10": 10, | |
| "LABEL_11": 11, | |
| "LABEL_12": 12, | |
| "LABEL_13": 13, | |
| "LABEL_14": 14, | |
| "LABEL_15": 15, | |
| "LABEL_16": 16, | |
| "LABEL_17": 17, | |
| "LABEL_18": 18, | |
| "LABEL_19": 19, | |
| "LABEL_2": 2, | |
| "LABEL_20": 20, | |
| "LABEL_21": 21, | |
| "LABEL_22": 22, | |
| "LABEL_23": 23, | |
| "LABEL_24": 24, | |
| "LABEL_25": 25, | |
| "LABEL_26": 26, | |
| "LABEL_27": 27, | |
| "LABEL_28": 28, | |
| "LABEL_29": 29, | |
| "LABEL_3": 3, | |
| "LABEL_30": 30, | |
| "LABEL_31": 31, | |
| "LABEL_32": 32, | |
| "LABEL_33": 33, | |
| "LABEL_34": 34, | |
| "LABEL_35": 35, | |
| "LABEL_36": 36, | |
| "LABEL_37": 37, | |
| "LABEL_4": 4, | |
| "LABEL_5": 5, | |
| "LABEL_6": 6, | |
| "LABEL_7": 7, | |
| "LABEL_8": 8, | |
| "LABEL_9": 9 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "problem_type": "single_label_classification", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.49.0", | |
| "vocab_size": 30522 | |
| } | |