Shubh Goyal commited on
Commit
6f401aa
·
1 Parent(s): 563efc9

Updates model

Browse files
Files changed (4) hide show
  1. README.md +46 -0
  2. config.json +42 -0
  3. model.safetensors +3 -0
  4. special_tokens_map.json +7 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ pipeline_tag: token-classification
7
+ tags:
8
+ - agriculture
9
+ datasets:
10
+ - ksgr5566/ner
11
+ metrics:
12
+ - f1
13
+
14
+ widget:
15
+ - text: "Which are the best varities of tomatoes?"
16
+ example_title: "Example- crop"
17
+ - text: "My paddy has been attacked by grasshopper."
18
+ example_title: "Example- crop + pest"
19
+ - text: "Where can I buy draught resistant paddy ?"
20
+ example_title: "Example- seed type"
21
+
22
+ ---
23
+ # Model Card for Model ID
24
+ The model recognizes 3 types of entities - pest names, seed types, crop names.
25
+
26
+ ## Model Details
27
+
28
+ ### Model Description
29
+
30
+ <!-- Provide a longer summary of what this model is. -->
31
+
32
+
33
+
34
+ - **Developed by:** SamagraX | Transforming Governance
35
+ - **Shared by [optional]:** SamagraX | Transforming Governance
36
+ - **Model type:** Named Entity Recognition for agriculture
37
+ - **Language(s) (NLP):** Python
38
+ - **License:** MIT
39
+ - **Finetuned from model [optional]:** distilbert-base-uncased
40
+
41
+
42
+ ## Uses
43
+
44
+ Helps extracting the crop name, pest names and seed details from a query asked.
45
+
46
+
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForTokenClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-CROP",
14
+ "2": "I-CROP",
15
+ "3": "B-PEST",
16
+ "4": "I-PEST",
17
+ "5": "B-SEED",
18
+ "6": "I-SEED"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "label2id": {
22
+ "B-CROP": 1,
23
+ "B-PEST": 3,
24
+ "B-SEED": 5,
25
+ "I-CROP": 2,
26
+ "I-PEST": 4,
27
+ "I-SEED": 6,
28
+ "O": 0
29
+ },
30
+ "max_position_embeddings": 512,
31
+ "model_type": "distilbert",
32
+ "n_heads": 12,
33
+ "n_layers": 6,
34
+ "pad_token_id": 0,
35
+ "qa_dropout": 0.1,
36
+ "seq_classif_dropout": 0.2,
37
+ "sinusoidal_pos_embds": false,
38
+ "tie_weights_": true,
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.40.2",
41
+ "vocab_size": 30522
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b766eae5e47386b6fbccfbcf82c0d9feece8620adce5313771cee8da89f59db9
3
+ size 265485396
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }