Kriyans commited on
Commit
0c2864b
·
1 Parent(s): 1a41fc9

Update ner.py

Browse files
Files changed (1) hide show
  1. ner.py +3 -5
ner.py CHANGED
@@ -3,7 +3,7 @@ import datasets
3
  logger = datasets.logging.get_logger(__name__)
4
 
5
  _URL = "https://raw.githubusercontent.com/Kriyansparsana/demorepo/main/"
6
- _TRAINING_FILE = "wnut17train%20(1).conll"
7
  _DEV_FILE = "indian_ner_dev.conll"
8
  _TEST_FILE = "indian_ner_test.conll"
9
 
@@ -36,10 +36,8 @@ class indian_names(datasets.GeneratorBasedBuilder):
36
  datasets.features.ClassLabel(
37
  names=[
38
  "O",
39
- "B-corporation",
40
- "I-corporation",
41
- "B-person",
42
- "I-person",
43
  ]
44
  )
45
  ),
 
3
  logger = datasets.logging.get_logger(__name__)
4
 
5
  _URL = "https://raw.githubusercontent.com/Kriyansparsana/demorepo/main/"
6
+ _TRAINING_FILE = "Indian_dataset_wnut_train.conll"
7
  _DEV_FILE = "indian_ner_dev.conll"
8
  _TEST_FILE = "indian_ner_test.conll"
9
 
 
36
  datasets.features.ClassLabel(
37
  names=[
38
  "O",
39
+ "PER",
40
+ "ORG"
 
 
41
  ]
42
  )
43
  ),