Text Classification
Transformers
Safetensors
English
bert
agriculture
agronomy
query-classification
farming
corn
soybeans
rag
routing
text-embeddings-inference
Instructions to use zanegraper/ag_query_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zanegraper/ag_query_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zanegraper/ag_query_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("zanegraper/ag_query_classifier") model = AutoModelForSequenceClassification.from_pretrained("zanegraper/ag_query_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": null, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 384, | |
| "id2label": { | |
| "0": "is_ag_related", | |
| "1": "crop__corn", | |
| "2": "crop__soybean", | |
| "3": "crop__both", | |
| "4": "crop__unknown", | |
| "5": "topic__disease", | |
| "6": "topic__pests", | |
| "7": "topic__weeds", | |
| "8": "topic__fertility", | |
| "9": "topic__soil_health", | |
| "10": "topic__weather_stress", | |
| "11": "topic__irrigation", | |
| "12": "topic__planting", | |
| "13": "topic__emergence", | |
| "14": "topic__growth_stage", | |
| "15": "topic__harvest_storage", | |
| "16": "topic__markets_economics", | |
| "17": "topic__regulation", | |
| "18": "topic__general_management", | |
| "19": "needs_weather", | |
| "20": "needs_location", | |
| "21": "needs_farm_profile", | |
| "22": "needs_growth_stage", | |
| "23": "needs_soil_data", | |
| "24": "needs_scouting_observations" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1536, | |
| "is_decoder": false, | |
| "label2id": { | |
| "crop__both": 3, | |
| "crop__corn": 1, | |
| "crop__soybean": 2, | |
| "crop__unknown": 4, | |
| "is_ag_related": 0, | |
| "needs_farm_profile": 21, | |
| "needs_growth_stage": 22, | |
| "needs_location": 20, | |
| "needs_scouting_observations": 24, | |
| "needs_soil_data": 23, | |
| "needs_weather": 19, | |
| "topic__disease": 5, | |
| "topic__emergence": 13, | |
| "topic__fertility": 8, | |
| "topic__general_management": 18, | |
| "topic__growth_stage": 14, | |
| "topic__harvest_storage": 15, | |
| "topic__irrigation": 11, | |
| "topic__markets_economics": 16, | |
| "topic__pests": 6, | |
| "topic__planting": 12, | |
| "topic__regulation": 17, | |
| "topic__soil_health": 9, | |
| "topic__weather_stress": 10, | |
| "topic__weeds": 7 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "problem_type": "multi_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.0.0", | |
| "type_vocab_size": 2, | |
| "use_cache": false, | |
| "vocab_size": 30522 | |
| } | |