joelniklaus commited on
Commit
e880b8a
1 Parent(s): 0b7dcda

updated NER labelsets

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. lextreme.py +88 -55
README.md CHANGED
@@ -108,7 +108,7 @@ In detail, we support the folliwing tasks and configurations:
108
  | MultiEURLEX | Topic Classification | (level 1, level 2, level 3) | [multi_eurlex](https://huggingface.co/datasets/multi_eurlex) |
109
  | LeNER BR | Named Entity Recognition | default | [lener_br](https://huggingface.co/datasets/lener_br) |
110
  | LegalNERo | Named Entity Recognition | default | [legalnero](https://huggingface.co/datasets/joelito/legalnero) |
111
- | Greek Legal NER | Named Entity Recognition | default | [greek_legal_ner](https://huggingface.co/datasets/greek_legal_ner) |
112
  | MAPA | Named Entity Recognition | (coarse, fine) | [mapa](https://huggingface.co/datasets/joelito/mapa) |
113
 
114
 
 
108
  | MultiEURLEX | Topic Classification | (level 1, level 2, level 3) | [multi_eurlex](https://huggingface.co/datasets/multi_eurlex) |
109
  | LeNER BR | Named Entity Recognition | default | [lener_br](https://huggingface.co/datasets/lener_br) |
110
  | LegalNERo | Named Entity Recognition | default | [legalnero](https://huggingface.co/datasets/joelito/legalnero) |
111
+ | Greek Legal NER | Named Entity Recognition | default | [greek_legal_ner](https://huggingface.co/datasets/joelito/greek_legal_ner) |
112
  | MAPA | Named Entity Recognition | (coarse, fine) | [mapa](https://huggingface.co/datasets/joelito/mapa) |
113
 
114
 
lextreme.py CHANGED
@@ -3850,12 +3850,17 @@ _LEGAL_NERO = {
3850
  """
3851
  ,
3852
  "label_classes": [
3853
- "LEGAL",
3854
- "LOC",
3855
- "ORG",
3856
- "PER",
3857
- "TIME",
3858
- "O",
 
 
 
 
 
3859
  ],
3860
  }
3861
  _GREEK_LEGAL_NER = {
@@ -3882,15 +3887,23 @@ _GREEK_LEGAL_NER = {
3882
  """
3883
  ,
3884
  "label_classes": [
3885
- "FACILITY",
3886
- "GPE",
3887
- "LEG-REFS",
3888
- "LOCATION-NAT",
3889
- "LOCATION-UNK",
3890
- "ORG",
3891
- "PERSON",
3892
- "PUBLIC-DOCS",
3893
- "O",
 
 
 
 
 
 
 
 
3894
  ],
3895
  }
3896
  _MAPA_COARSE = {
@@ -3917,51 +3930,71 @@ _MAPA_COARSE = {
3917
  }
3918
  """
3919
  ,
3920
- "label_classes": ['ADDRESS', 'AMOUNT', 'DATE', 'PERSON', 'ORGANISATION', 'TIME', 'VEHICLE', 'O'],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3921
  }
3922
  _MAPA_FINE = {
3923
  **_MAPA_COARSE,
3924
  "label_col": "fine_grained",
3925
  "label_classes": [
3926
- 'building',
3927
- 'city',
3928
- 'country',
3929
- 'place',
3930
- 'postcode',
3931
- 'street',
3932
- 'territory',
3933
- 'unit',
3934
- 'value',
3935
- 'year',
3936
- 'standard abbreviation',
3937
- 'month',
3938
- 'day of the week',
3939
- 'day',
3940
- 'calender event',
3941
- 'age',
3942
- 'email',
3943
- 'ethnic category',
3944
- 'family name',
3945
- 'financial',
3946
- 'given name – female',
3947
- 'given name – male',
3948
- 'health insurance number',
3949
- 'id document number',
3950
- 'initial name',
3951
- 'marital status',
3952
- 'medical record number',
3953
- 'nationality',
3954
- 'profession',
3955
- 'role',
3956
- 'social security number',
3957
- 'title',
3958
- 'url',
3959
- 'build year',
3960
- 'colour',
3961
- 'license plate number',
3962
- 'model',
3963
- 'type',
3964
- 'o'
 
 
 
 
 
 
3965
  ],
3966
  }
3967
 
 
3850
  """
3851
  ,
3852
  "label_classes": [
3853
+ 'O',
3854
+ 'B-TIME',
3855
+ 'I-TIME',
3856
+ 'B-LEGAL',
3857
+ 'I-LEGAL',
3858
+ 'B-ORG',
3859
+ 'I-ORG',
3860
+ 'B-LOC',
3861
+ 'I-LOC',
3862
+ 'B-PER',
3863
+ 'I-PER',
3864
  ],
3865
  }
3866
  _GREEK_LEGAL_NER = {
 
3887
  """
3888
  ,
3889
  "label_classes": [
3890
+ 'O',
3891
+ 'B-ORG',
3892
+ 'I-ORG',
3893
+ 'B-GPE',
3894
+ 'I-GPE',
3895
+ 'B-LEG-REFS',
3896
+ 'I-LEG-REFS',
3897
+ 'B-PUBLIC-DOCS',
3898
+ 'I-PUBLIC-DOCS',
3899
+ 'B-PERSON',
3900
+ 'I-PERSON',
3901
+ 'B-FACILITY',
3902
+ 'I-FACILITY',
3903
+ 'B-LOCATION-UNK',
3904
+ 'I-LOCATION-UNK',
3905
+ 'B-LOCATION-NAT',
3906
+ 'I-LOCATION-NAT'
3907
  ],
3908
  }
3909
  _MAPA_COARSE = {
 
3930
  }
3931
  """
3932
  ,
3933
+ "label_classes": [
3934
+ 'O',
3935
+ 'B-ORGANISATION',
3936
+ 'I-ORGANISATION',
3937
+ 'B-ADDRESS',
3938
+ 'I-ADDRESS',
3939
+ 'B-DATE',
3940
+ 'I-DATE',
3941
+ 'B-PERSON',
3942
+ 'I-PERSON',
3943
+ 'B-AMOUNT',
3944
+ 'I-AMOUNT',
3945
+ 'B-TIME',
3946
+ 'I-TIME'
3947
+ ],
3948
  }
3949
  _MAPA_FINE = {
3950
  **_MAPA_COARSE,
3951
  "label_col": "fine_grained",
3952
  "label_classes": [
3953
+ 'o',
3954
+ 'b-day',
3955
+ 'i-day',
3956
+ 'b-month',
3957
+ 'i-month',
3958
+ 'b-year',
3959
+ 'i-year',
3960
+ 'b-title',
3961
+ 'i-title',
3962
+ 'b-family name',
3963
+ 'i-family name',
3964
+ 'b-initial name',
3965
+ 'i-initial name',
3966
+ 'b-age',
3967
+ 'i-age',
3968
+ 'b-value',
3969
+ 'i-value',
3970
+ 'b-unit',
3971
+ 'i-unit',
3972
+ 'b-country',
3973
+ 'i-country',
3974
+ 'b-city',
3975
+ 'i-city',
3976
+ 'b-place',
3977
+ 'i-place',
3978
+ 'b-territory',
3979
+ 'i-territory',
3980
+ 'b-role',
3981
+ 'i-role',
3982
+ 'b-profession',
3983
+ 'i-profession',
3984
+ 'b-marital status',
3985
+ 'i-marital status',
3986
+ 'b-url',
3987
+ 'i-url',
3988
+ 'b-ethnic category',
3989
+ 'i-ethnic category',
3990
+ 'b-standard abbreviation',
3991
+ 'i-standard abbreviation'
3992
+ 'b-type',
3993
+ 'i-type',
3994
+ 'b-building',
3995
+ 'i-building',
3996
+ 'b-nationality',
3997
+ 'i-nationality',
3998
  ],
3999
  }
4000