Datasets:
Commit ·
e880b8a
1
Parent(s): 0b7dcda
updated NER labelsets
Browse files- README.md +1 -1
- 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 |
|
| 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 |
-
|
| 3854 |
-
|
| 3855 |
-
|
| 3856 |
-
|
| 3857 |
-
|
| 3858 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3859 |
],
|
| 3860 |
}
|
| 3861 |
_GREEK_LEGAL_NER = {
|
|
@@ -3882,15 +3887,23 @@ _GREEK_LEGAL_NER = {
|
|
| 3882 |
"""
|
| 3883 |
,
|
| 3884 |
"label_classes": [
|
| 3885 |
-
|
| 3886 |
-
|
| 3887 |
-
|
| 3888 |
-
|
| 3889 |
-
|
| 3890 |
-
|
| 3891 |
-
|
| 3892 |
-
|
| 3893 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3894 |
],
|
| 3895 |
}
|
| 3896 |
_MAPA_COARSE = {
|
|
@@ -3917,51 +3930,71 @@ _MAPA_COARSE = {
|
|
| 3917 |
}
|
| 3918 |
"""
|
| 3919 |
,
|
| 3920 |
-
"label_classes": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3921 |
}
|
| 3922 |
_MAPA_FINE = {
|
| 3923 |
**_MAPA_COARSE,
|
| 3924 |
"label_col": "fine_grained",
|
| 3925 |
"label_classes": [
|
| 3926 |
-
'
|
| 3927 |
-
'
|
| 3928 |
-
'
|
| 3929 |
-
'
|
| 3930 |
-
'
|
| 3931 |
-
'
|
| 3932 |
-
'
|
| 3933 |
-
'
|
| 3934 |
-
'
|
| 3935 |
-
'
|
| 3936 |
-
'
|
| 3937 |
-
'
|
| 3938 |
-
'
|
| 3939 |
-
'
|
| 3940 |
-
'
|
| 3941 |
-
'
|
| 3942 |
-
'
|
| 3943 |
-
'
|
| 3944 |
-
'
|
| 3945 |
-
'
|
| 3946 |
-
'
|
| 3947 |
-
'
|
| 3948 |
-
'
|
| 3949 |
-
'
|
| 3950 |
-
'
|
| 3951 |
-
'
|
| 3952 |
-
'
|
| 3953 |
-
'
|
| 3954 |
-
'
|
| 3955 |
-
'
|
| 3956 |
-
'
|
| 3957 |
-
'
|
| 3958 |
-
'
|
| 3959 |
-
'
|
| 3960 |
-
'
|
| 3961 |
-
'
|
| 3962 |
-
'
|
| 3963 |
-
'
|
| 3964 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|