CoolFace
Datasetpublic

surdan/nerel_short

About DataSet The dataset based on NEREL corpus. For more information about original data, please visit this source Example of preparing original data illustrated in <Prepare_original_data.ipynb> Additional info The dataset consist 29 entities, each of them can be as beginner part of entity "B-" as inner "I-". Frequency for each entity: I-AGE: 284 B-AGE: 247 B-AWARD: 285 I-AWARD: 466 B-CITY: 1080 I-CITY: 39 B-COUNTRY: 2378 I-COUNTRY: 128 B-CRIME: 214 I-CRIME:… See the full description on the dataset page: https://huggingface.co/datasets/surdan/nerel_short.

sourceHugging Faceupdated 4y agoView on Hugging Face
1likes63downloads
Dataset Card

About DataSet

The dataset based on NEREL corpus.

For more information about original data, please visit this source

Example of preparing original data illustrated in <Prepareoriginaldata.ipynb>

Additional info

The dataset consist 29 entities, each of them can be as beginner part of entity "B-" as inner "I-".

Frequency for each entity:

  • —I-AGE: 284
  • —B-AGE: 247
  • —B-AWARD: 285
  • —I-AWARD: 466
  • —B-CITY: 1080
  • —I-CITY: 39
  • —B-COUNTRY: 2378
  • —I-COUNTRY: 128
  • —B-CRIME: 214
  • —I-CRIME: 372
  • —B-DATE: 2701
  • —I-DATE: 5437
  • —B-DISEASE: 136
  • —I-DISEASE: 80
  • —B-DISTRICT: 98
  • —I-DISTRICT: 73
  • —B-EVENT: 3369
  • —I-EVENT: 2524
  • —B-FACILITY: 376
  • —I-FACILITY: 510
  • —B-FAMILY: 27
  • —I-FAMILY: 22
  • —B-IDEOLOGY: 271
  • —I-IDEOLOGY: 20
  • —B-LANGUAGE: 32
  • —I-LAW: 1196
  • —B-LAW: 297
  • —B-LOCATION: 242
  • —I-LOCATION: 139
  • —B-MONEY: 147
  • —I-MONEY: 361
  • —B-NATIONALITY: 437
  • —I-NATIONALITY: 41
  • —B-NUMBER: 1079
  • —I-NUMBER: 328
  • —B-ORDINAL: 485
  • —I-ORDINAL: 6
  • —B-ORGANIZATION: 3339
  • —I-ORGANIZATION: 3354
  • —B-PENALTY: 73
  • —I-PENALTY: 104
  • —B-PERCENT: 51
  • —I-PERCENT: 37
  • —B-PERSON: 5148
  • —I-PERSON: 3635
  • —I-PRODUCT: 48
  • —B-PRODUCT: 197
  • —B-PROFESSION: 3869
  • —I-PROFESSION: 2598
  • —B-RELIGION: 102
  • —I-RELIGION: 1
  • —B-STATEORPROVINCE: 436
  • —I-STATEORPROVINCE: 154
  • —B-TIME: 187
  • —I-TIME: 529
  • —B-WORKOFART: 133
  • —I-WORKOFART: 194

You can find mapper for entity ids in <idtolabel_map.pickle> file:

python
import pickle

with open('id_to_label_map.pickle', 'rb') as f:
    mapper = pickle.load(f)