Yuan Chuan Kee commited on
Commit ·
cd16465
1
Parent(s): c3c8e60
Updated the dataset with numbered parts
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+1-1
- README.md+25-9
- annotated_reference_strings.py+19-37
- data/crossref-part-00001.jsonl.gzAdded+3
- data/crossref-part-00002.jsonl.gzAdded+3
- data/crossref-part-00003.jsonl.gzAdded+3
- data/crossref-part-00004.jsonl.gzAdded+3
- data/crossref-part-00005.jsonl.gzAdded+3
- data/crossref-part-00006.jsonl.gzAdded+3
- data/crossref-part-00007.jsonl.gzAdded+3
- data/crossref-part-00008.jsonl.gzAdded+3
- data/crossref-part-00009.jsonl.gzAdded+3
- data/crossref-part-00010.jsonl.gzAdded+3
- data/crossref-part-00011.jsonl.gzAdded+3
- data/crossref-part-00012.jsonl.gzAdded+3
- data/crossref-part-00013.jsonl.gzAdded+3
- data/crossref-part-00014.jsonl.gzAdded+3
- data/crossref-part-00015.jsonl.gzAdded+3
- data/crossref-part-00016.jsonl.gzAdded+3
- data/jstor.jsonl.gz → data/jstor-part-00001.jsonl.gzRenamed
- data/pubmed-part-00001.jsonl.gzAdded+3
- data/pubmed-part-00002.jsonl.gzAdded+3
- data/pubmed-part-00003.jsonl.gzAdded+3
- data/pubmed-part-00004.jsonl.gzAdded+3
- data/pubmed-part-00005.jsonl.gzAdded+3
- data/pubmed-part-00006.jsonl.gzAdded+3
- data/pubmed-part-00007.jsonl.gzAdded+3
- data/pubmed-part-00008.jsonl.gzAdded+3
- data/pubmed-part-00009.jsonl.gzAdded+3
- data/pubmed-part-00010.jsonl.gzAdded+3
- data/pubmed-part-00011.jsonl.gzAdded+3
- data/pubmed-part-00012.jsonl.gzAdded+3
- data/pubmed-part-00013.jsonl.gzAdded+3
- data/pubmed-part-00014.jsonl.gzAdded+3
- data/pubmed-part-00015.jsonl.gzAdded+3
- data/pubmed-part-00016.jsonl.gzAdded+3
- data/pubmed-part-00017.jsonl.gzAdded+3
- data/pubmed-part-00018.jsonl.gzAdded+3
- data/pubmed-part-00019.jsonl.gzAdded+3
- data/pubmed-part-00020.jsonl.gzAdded+3
- data/pubmed-part-00021.jsonl.gzAdded+3
- data/pubmed-part-00022.jsonl.gzAdded+3
- data/pubmed-part-00023.jsonl.gzAdded+3
- data/pubmed-part-00024.jsonl.gzAdded+3
- data/pubmed-part-00025.jsonl.gzAdded+3
- data/pubmed-part-00026.jsonl.gzAdded+3
- data/pubmed-part-00027.jsonl.gzAdded+3
- data/pubmed-part-00028.jsonl.gzAdded+3
- data/pubmed-part-00029.jsonl.gzAdded+3
- data/pubmed-part-00030.jsonl.gzAdded+3
24 unmodified lines2526272824 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textdata/jstor.jsonl.gz filter=lfs diff=lfs merge=lfs -text24 unmodified lines2526272824 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.jsonl.gz filter=lfs diff=lfs merge=lfs -text
12345658 unmodified lines656667686970717273747576775 unmodified lines83848586878889---YAML tags:- copy-paste the tags obtained with the tagging app: https://github.com/huggingface/datasets-tagging---# Dataset Card for annotated_reference_strings58 unmodified lines}```**Important Note:** Each citation is synthesized to _at most_ **17** CSL styles.Therefore, there will be near duplicates.All characters are enclosed by the tag. Only tokens that act as "conjunctions" are not enclosed in tags.Do note that, there will be instances where a token can be annotated to a hierarchical tag e.g. `accessed.year`.This depends on the author(s) of the CSL styles.### Data Fields5 unmodified lines- `content`: The rendered citation of a specific style with each segment enclosed by tags named after the CSL variables### Data SplitssData splits are not available yet.## Dataset Creation123456789101112131415161718192021222358 unmodified lines8283848586878889909192935 unmodified lines99100101102103104105---annotations_creators:- otherlanguage_creators:- foundlanguages:- en-USlicenses:- cc-by-4.0multilinguality:- monolingualpretty_name: Annotated Reference Stringssize_categories:- 10M<n<100Msource_datasets:- originaltask_categories:- structure-predictiontask_ids:- parsing---# Dataset Card for annotated_reference_strings58 unmodified lines}```#### Important Note1. Each citation is rendered to _at most_ **17** CSL styles. Therefore, there will be near duplicates.2. All characters (including punctuations) of a segment (**a segment consists of 1 or more token**) are enclosed by tag(s).1. Only tokens that act as "conjunctions" are not enclosed in tags. These tokens will be labelled as `other`.3. There will be instances which a segment can be enclosed by more than one tag e.g. `<issued><year>2021</year></issued>`. This depends on how the styles' author(s).### Data Fields5 unmodified lines- `content`: The rendered citation of a specific style with each segment enclosed by tags named after the CSL variables### Data SplitsData splits are not available yet.## Dataset Creation
18 unmodified lines1920212223242526272829303132333435363738394041424344454647484950515253545556575859606115 unmodified lines777879808182838485868788899091929394959697989910010110210310418 unmodified lines}"""# TODO: Add description of the dataset here# You can copy an official description_DESCRIPTION = """\This new dataset is designed to solve this great NLP task and is crafted with a lot of care."""# TODO: Add a link to an official homepage for the dataset here_HOMEPAGE = ""# TODO: Add the licence for the dataset here if you can find it_LICENSE = ""# TODO: Add link to the official dataset URLs here# The HuggingFace dataset library don't host the datasets but only point to the original files# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)_BASE_URL = "https://huggingface.co/datasets/yuanchuan/annotated_reference_strings"_URLs = {"default": [f"{_BASE_URL}/resolve/main/data/jstor.jsonl.gz"]}class AnnotatedReferenceStringsDataset(datasets.GeneratorBasedBuilder):"""Annotated Reference Strings dataset"""VERSION = datasets.Version("0.1.0")# This is an example of a dataset with multiple configurations.# If you don't want/need to define several sub-sets in your dataset,# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.# If you need to make complex sub-parts in the datasets with configurable options# You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig# BUILDER_CONFIG_CLASS = MyBuilderConfig# You will be able to load one or the other configurations in the following list with# data = datasets.load_dataset('my_dataset', 'first_domain')# data = datasets.load_dataset('my_dataset', 'second_domain')BUILDER_CONFIGS = [datasets.BuilderConfig(name="default", version=VERSION,description="This dataset is the raw representation without tokenization."),15 unmodified linesreturn datasets.DatasetInfo(description=_DESCRIPTION,# This defines the different columns of the dataset and their typesfeatures=features, # Here we define them above because they are different between the two configurations# If there's a common (input, target) tuple from the features,# specify them here. They'll be used if as_supervised=True in# builder.as_dataset.supervised_keys=None,# Homepage of the dataset for documentationhomepage=_HOMEPAGE,# License for the dataset if availablelicense=_LICENSE,# Citation for the datasetcitation=_CITATION,)def _split_generators(self, dl_manager):"""Returns SplitGenerators."""# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archivedata_urls = _URLs[self.config.name]files = dl_manager.download(data_urls)return [18 unmodified lines192021222324252627282930313233343536373839404142434445464748495051525354555615 unmodified lines72737475767778798081828384858618 unmodified lines}"""_DESCRIPTION = """\A repository of reference strings annotated using CSL processor using citations obtained from various sources."""# TODO: Add a link to an official homepage for the dataset here_HOMEPAGE = "https://www.github.com/kylase"_LICENSE = "cc-by-4.0"_BASE_URL = "https://huggingface.co/datasets/yuanchuan/annotated_reference_strings/resolve/main/data"_URL_FORMAT = "{base_url}/{source}-part-{part:05}.jsonl.gz"_SOURCES_PARTS = {"crossref": 16,"pubmed": 32,"jstor": 1}_URLs = {"default": [_URL_FORMAT.format(base_url=_BASE_URL, source=source, part=i)for source, total_parts in _SOURCES_PARTS.items()for i in range(1, total_parts + 1)]}class AnnotatedReferenceStringsDataset(datasets.GeneratorBasedBuilder):"""Annotated Reference Strings dataset"""VERSION = datasets.Version("0.2.0")BUILDER_CONFIGS = [datasets.BuilderConfig(name="default", version=VERSION,description="This dataset is the raw representation without tokenization."),15 unmodified linesreturn datasets.DatasetInfo(description=_DESCRIPTION,features=features,supervised_keys=None,homepage=_HOMEPAGE,license=_LICENSE,citation=_CITATION,)def _split_generators(self, dl_manager):"""Returns SplitGenerators."""data_urls = _URLs[self.config.name]files = dl_manager.download(data_urls)return [
123version https://git-lfs.github.com/spec/v1oid sha256:065b8c2a37f15db481c906160ddf70b56caa18355a7aa3cdc86ba4fc2456340fsize 731441550123version https://git-lfs.github.com/spec/v1oid sha256:51ed2d0c63ff2a62a7dbbd73acb3ac2b0fe738b06da48d29c2b88e66ef1814afsize 687213083123version https://git-lfs.github.com/spec/v1oid sha256:0f27a1663e12a50e679a114ca23896a6472d41b9a89ddac29be8ef58b9401b77size 736662869123version https://git-lfs.github.com/spec/v1oid sha256:9eff2b0fa0cd228fc445b9ab8016f1a5a15c28df3c9637c29e3ace5f8ef0a0e7size 693192058123version https://git-lfs.github.com/spec/v1oid sha256:8e9874802d4cda4467e0b2276a335d00591c0ee3ec97df64eb2f58e427c2eabbsize 745898449123version https://git-lfs.github.com/spec/v1oid sha256:72d5579a5e9a4984e6a27bccaf9888eca6fae5e97e517a3efe5c35c74021959dsize 693773254123version https://git-lfs.github.com/spec/v1oid sha256:7407c707b84bf32fef11e5f3aa7bb65d92623f073a641127778406fa0d1280cfsize 738564477123version https://git-lfs.github.com/spec/v1oid sha256:489185aaa78b91d60a23be5c9fc325ce7ed85f80e0793edd426483e1fe3eef13size 690224253123version https://git-lfs.github.com/spec/v1oid sha256:7b6c44942e698491e8fa454b5539bb8605a3896ed0d803f91d24ad282ba50708size 747499838123version https://git-lfs.github.com/spec/v1oid sha256:07f66e6d9bbc0972cd2c8bc027dbe2f76784768bf0013d5e572da3b2504bcd94size 692413742123version https://git-lfs.github.com/spec/v1oid sha256:9c326b6fe20352ac4fe6090489371a65fe4519ef5fce66e2a7d25064095cd521size 652797215123version https://git-lfs.github.com/spec/v1oid sha256:5dec5e50b377fd58c2592d6fea3a536478825872435ed89af1a038f5e8fa0807size 601887202123version https://git-lfs.github.com/spec/v1oid sha256:7e66fd2a825a5856c55bf4ac6dcf6f5f8a61107d50469903683a8cb4bd69aa70size 639399977123version https://git-lfs.github.com/spec/v1oid sha256:01cc73ec4ff4651673d1acc53a6db788e0a81a93c81b76322b156a4e34f40594size 712504622123version https://git-lfs.github.com/spec/v1oid sha256:60dd0610f5e6aca2a1af621a52bf974780187576a6845a06c337c0309dfe03a5size 736872210123version https://git-lfs.github.com/spec/v1oid sha256:b6d85c032e4f17267969ed41775a6070372476462f9b38f01f098dc1a7ad2b87size 724609240123version https://git-lfs.github.com/spec/v1oid sha256:eaf303fa876acc9f8d8bc3e2db1fddb153fce9215d3a04205bd2c84958a6be1esize 984356698123version https://git-lfs.github.com/spec/v1oid sha256:3bb73895714c5d1ccbe38390361d37f581a8932209c42d057ce451520f746ccdsize 972558834123version https://git-lfs.github.com/spec/v1oid sha256:054cd44f1d47e4ee794b2781fee33007742388d2f4d0ef80f6264fc307917c3dsize 965572167123version https://git-lfs.github.com/spec/v1oid sha256:d0f700b5354c2b8a18b958754dc96d985fe24ed8c8720a432766b660072cc824size 929865058123version https://git-lfs.github.com/spec/v1oid sha256:841d6d31003637f22e2b5e022e212cb71f83c6da796cc81dc4fa8964c7af2461size 863426383123version https://git-lfs.github.com/spec/v1oid sha256:ba4ea3e984347daa2c8b562e6c6f9b10cbc990507adefa67010208a36f3074ffsize 820947291123version https://git-lfs.github.com/spec/v1oid sha256:82217b1c7dcea784f214a9f95568bdb12bbfbdf176ccede9a91b67f677492f5fsize 829356458123version https://git-lfs.github.com/spec/v1oid sha256:bca0cb90e91039677ddaa1241f3411fcd91be12db3bbb995c914b5e4d5a41252size 913154082123version https://git-lfs.github.com/spec/v1oid sha256:99179f470dd054fd9803c07bcce9e22f6bcd179aba1134a3a5f052af20191e81size 954272596123version https://git-lfs.github.com/spec/v1oid sha256:1c85ba47b8fb371137ed79e2dbff6cff57c82e8be216ea8429346900087be0b3size 1005401526123version https://git-lfs.github.com/spec/v1oid sha256:9d840274001cd302eef7fbf31307eb00c97667eb95e80b4a7d936d1a46986fcdsize 1030752652123version https://git-lfs.github.com/spec/v1oid sha256:fe41d2a00781fa5585750a0654be600b6b1c316b75c66a3e1bc0f61d4729f87fsize 918459401123version https://git-lfs.github.com/spec/v1oid sha256:be063380025e57c703e3ce0879492f8400fce215da52793f14dae0f442e44ee8size 1015645482123version https://git-lfs.github.com/spec/v1oid sha256:60373b0e4289b5a5a5f32983a049feb552a08088bd84363819236cdac8259769size 992414615123version https://git-lfs.github.com/spec/v1oid sha256:8fc8ec2b0adb50102ea5b2f22f13715aab4f37e544ae83b2e3f183cd7fb52540size 775316340123version https://git-lfs.github.com/spec/v1oid sha256:732f1477dddbf56e95edb4b5c394dbf05ba1e07b8e890018fd46ceab7a08345bsize 870606021123version https://git-lfs.github.com/spec/v1oid sha256:d8e8439850447b69cb622d17bba58e75498d41e9a249a687a7da2aa4b91e0908size 1073224933123version https://git-lfs.github.com/spec/v1oid sha256:540c99519d32ab56644c8ba2e73f82c05211b129e1b0e33d3e56de2960b72918size 1095035090123version https://git-lfs.github.com/spec/v1oid sha256:52bc262cfb91a928acc28a2622a3e353946b8ffd3a3ee26988f0132f0c9edb01size 1002456467123version https://git-lfs.github.com/spec/v1oid sha256:664a129d25b5a75eab9aa8c00afb9b592c7e22920139bae6caa457793d9c4158size 1071905260123version https://git-lfs.github.com/spec/v1oid sha256:692580dcc25d71798f819ffac14e180dfae8f63239b3f3273106e96fb39cb343size 1068249451123version https://git-lfs.github.com/spec/v1oid sha256:bd6d5816b6939707817db9ca84d6127b0f431959e0e38c657c69f66b90f13a72size 1033450814123version https://git-lfs.github.com/spec/v1oid sha256:66a03e8f4bc8b7f93dd48509d1b884d61a107b53d41e1541f862e5831353cdf7size 1153481112123version https://git-lfs.github.com/spec/v1oid sha256:7ed6a8a5922ba779cb02f7399b2a18d97340d755ce14638fe99d80daa6cfeda9size 1162792761123version https://git-lfs.github.com/spec/v1oid sha256:dae6351d6bea86c73d960df72e0f59317866dd4015dbd2451e3c5f1a1be69791size 1165996310123version https://git-lfs.github.com/spec/v1oid sha256:b23047b563330c90419139bd58a5709506686324e63ebe6556d2ed8fb277c169size 1171792618123version https://git-lfs.github.com/spec/v1oid sha256:576d22efdac3e1d764b4cbe8c2444496db1531e0fe22503c5f6cfebdff01a43fsize 1195989837123version https://git-lfs.github.com/spec/v1oid sha256:d7eeb793765e57c5f8060adf939714c5b325b74937419d865f441fdf796643besize 1184648702123version https://git-lfs.github.com/spec/v1oid sha256:cab54e111bbb13965f82bfcf8028d32291e4216eeb348cac545cb5ce0128c1a1size 1125160520123version https://git-lfs.github.com/spec/v1oid sha256:7af86b0086e6d563524a5643a2debba24892e49263048b414cb56eca9fc1edfdsize 134767630.gitattributes+1-1
README.md+25-9
annotated_reference_strings.py+19-37
data/crossref-part-00001.jsonl.gzAdded+3
data/crossref-part-00002.jsonl.gzAdded+3
data/crossref-part-00003.jsonl.gzAdded+3
data/crossref-part-00004.jsonl.gzAdded+3
data/crossref-part-00005.jsonl.gzAdded+3
data/crossref-part-00006.jsonl.gzAdded+3
data/crossref-part-00007.jsonl.gzAdded+3
data/crossref-part-00008.jsonl.gzAdded+3
data/crossref-part-00009.jsonl.gzAdded+3
data/crossref-part-00010.jsonl.gzAdded+3
data/crossref-part-00011.jsonl.gzAdded+3
data/crossref-part-00012.jsonl.gzAdded+3
data/crossref-part-00013.jsonl.gzAdded+3
data/crossref-part-00014.jsonl.gzAdded+3
data/crossref-part-00015.jsonl.gzAdded+3
data/crossref-part-00016.jsonl.gzAdded+3
data/jstor.jsonl.gz → data/jstor-part-00001.jsonl.gzRenamed
data/pubmed-part-00001.jsonl.gzAdded+3
data/pubmed-part-00002.jsonl.gzAdded+3
data/pubmed-part-00003.jsonl.gzAdded+3
data/pubmed-part-00004.jsonl.gzAdded+3
data/pubmed-part-00005.jsonl.gzAdded+3
data/pubmed-part-00006.jsonl.gzAdded+3
data/pubmed-part-00007.jsonl.gzAdded+3
data/pubmed-part-00008.jsonl.gzAdded+3
data/pubmed-part-00009.jsonl.gzAdded+3
data/pubmed-part-00010.jsonl.gzAdded+3
data/pubmed-part-00011.jsonl.gzAdded+3
data/pubmed-part-00012.jsonl.gzAdded+3
data/pubmed-part-00013.jsonl.gzAdded+3
data/pubmed-part-00014.jsonl.gzAdded+3
data/pubmed-part-00015.jsonl.gzAdded+3
data/pubmed-part-00016.jsonl.gzAdded+3
data/pubmed-part-00017.jsonl.gzAdded+3
data/pubmed-part-00018.jsonl.gzAdded+3
data/pubmed-part-00019.jsonl.gzAdded+3
data/pubmed-part-00020.jsonl.gzAdded+3
data/pubmed-part-00021.jsonl.gzAdded+3
data/pubmed-part-00022.jsonl.gzAdded+3
data/pubmed-part-00023.jsonl.gzAdded+3
data/pubmed-part-00024.jsonl.gzAdded+3
data/pubmed-part-00025.jsonl.gzAdded+3
data/pubmed-part-00026.jsonl.gzAdded+3
data/pubmed-part-00027.jsonl.gzAdded+3
data/pubmed-part-00028.jsonl.gzAdded+3
data/pubmed-part-00029.jsonl.gzAdded+3
data/pubmed-part-00030.jsonl.gzAdded+3