Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
100K - 1M
Tags:
structure-prediction
License:
Upload data files to repository and update download URLs
Browse files# Pull Request Overview
- Upload Few-NERD files to the repository in a directory called "data"
- Update the URLs to download data files from this repository
# Details
The download from the tsinghua cloud seems to be either slow or unreliable, which is why the dataset viewer on huggingface datasets was disabled. Since Few-NERD is distributed under CC BY-SA 4.0 license we can just upload the files here and use them directly.
- .gitattributes +3 -0
- data/inter.zip +3 -0
- data/intra.zip +3 -0
- data/supervised.zip +3 -0
- few-nerd.py +6 -4
.gitattributes
CHANGED
@@ -14,3 +14,6 @@
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
+
data/inter.zip filter=lfs diff=lfs merge=lfs -text
|
18 |
+
data/intra.zip filter=lfs diff=lfs merge=lfs -text
|
19 |
+
data/supervised.zip filter=lfs diff=lfs merge=lfs -text
|
data/inter.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1edeb7035f543f0b773bcce438b57198f5093ec8e656c5a2e5356f9e587e485
|
3 |
+
size 12029124
|
data/intra.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7936bf060fa9f98b41b8629a6059df20b16a45d4d73ef382e53754afb30bb143
|
3 |
+
size 11945789
|
data/supervised.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b38b77701bd50b7615c299988180595c02cca4b4060777fd399039b6336f8ad
|
3 |
+
size 14577157
|
few-nerd.py
CHANGED
@@ -23,11 +23,13 @@ other two are few-shot: Few-NERD (INTRA) and Few-NERD (INTER).
|
|
23 |
|
24 |
_LICENSE = "CC BY-SA 4.0"
|
25 |
|
26 |
-
# the original data files (zip of .txt) can be downloaded from tsinghua cloud
|
|
|
|
|
27 |
_URLs = {
|
28 |
-
"supervised": "
|
29 |
-
"intra": "
|
30 |
-
"inter": "
|
31 |
}
|
32 |
|
33 |
# the label ids, for coarse(NER_TAGS_DICT) and fine(FINE_NER_TAGS_DICT)
|
|
|
23 |
|
24 |
_LICENSE = "CC BY-SA 4.0"
|
25 |
|
26 |
+
# the original data files (zip of .txt) can be downloaded from tsinghua cloud, but we chose to host them on huggingface.co
|
27 |
+
# for better reliability and download speed
|
28 |
+
_URL = "https://huggingface.co/datasets/DFKI-SLT/few-nerd/resolve/main/data"
|
29 |
_URLs = {
|
30 |
+
"supervised": f"{_URL}/supervised.zip",
|
31 |
+
"intra": f"{_URL}/intra.zip",
|
32 |
+
"inter": f"{_URL}/inter.zip"
|
33 |
}
|
34 |
|
35 |
# the label ids, for coarse(NER_TAGS_DICT) and fine(FINE_NER_TAGS_DICT)
|