Upload folder using huggingface_hub
Browse filesFiles changed (7)
- .gitattributes+4
- README.md+88-3
- Tele-Data.pyAdded+51
- arxiv/arxiv.jsonlAdded+3
- standard/standard.jsonlAdded+3
- web/web.jsonlAdded+3
- wiki/wiki.jsonlAdded+3
55 unmodified lines56575855 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text55 unmodified lines5657585960616255 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -textarxiv/arxiv.jsonl filter=lfs diff=lfs merge=lfs -textstandard/standard.jsonl filter=lfs diff=lfs merge=lfs -textweb/web.jsonl filter=lfs diff=lfs merge=lfs -textwiki/wiki.jsonl filter=lfs diff=lfs merge=lfs -text
123---license: mit---12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788---license: mitlanguage:- entags:- telecomtask_categories:- text-generationconfigs:- config_name: defaultdata_files:- split: datapath: Tele-Eval.jsonl---# Tele-Data## Dataset SummaryTele-Data is a comprehensive dataset of telecommunications material that revolves around four categories of sources: (1) scientific papers from arXiv, (2) 3GPP standards, (3) Wikipedia articles related to telecommunications, and (4) telecommunications-related websites extracted from Common Crawl dumps.LLM-based filtering was used to identify the relevant material from these sources, which then underwent extensive cleaning, format unification, and equation material standardization. The dataset consists of approximately 2.5 billion tokens, making it ideal for continually pretraining language models to adapt them to the telecommunications domain.## Dataset Structure### Data FieldsThe data fields are as follows:* `ID`: Provides a unique identifier for each data sample.* `Category`: Identifies the category of the sample.* `Content`: Includes the full text of the data sample.* `Metadata`: Includes a JSON object, cast as a string, with information relevant to each data sample, which varies depending on the category.### Data InstancesAn example of Tele-Data looks as follows:```json{"ID": "standard_2413","Category": "standard","Content": "3rd Generation Partnership Project; \n Technical Specification Group Core Network and Terminals;\n Interworking between the Public Land Mobile Network (PLMN)\n supporting packet based services with\n Wireless Local Area Network (WLAN) Access and\n Packet Data Networks (PDN)\n (Release 12)\n Foreword\n This Technical Specification (TS) has been produced...","Metadata":"Series": "29","Release": "12","File_name": "29161-c00"}```## Sample CodeBelow, we share a code snippet on how to get quickly started with using the dataset. First, make sure to `pip install datasets`, then copy the snippet below and adapt it to your usecase.#### Using the whole dataset```pythonfrom datasets import load_datasetTele_Data = load_dataset("AliMaatouk/Tele-Data")data_sample = Tele_Data['train'][0]print(f"ID: {data_sample['id']}\nCategory: {data_sample['category']} \nContent: {data_sample['content']}")for key, value in json.loads(data_sample['metadata']).items():print(f"{key}: {value}")```#### Using a subset of the dataset```pythonfrom datasets import load_datasetTele_Data = load_dataset("AliMaatouk/Tele-Data", name="standard")data_sample = Tele_Data['train'][0]print(f"ID: {data_sample['id']}\nCategory: {data_sample['category']} \nContent: {data_sample['content']}")for key, value in json.loads(data_sample['metadata']).items():print(f"{key}: {value}")```## CitationYou can find the paper with all details about the dataset at https://arxiv.org/abs/xxx. Please cite it as follows:```@misc{xx}```
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051import jsonimport datasets
class TeleData(datasets.GeneratorBasedBuilder): """Tele-Data dataset with multiple subsets: arxiv, standard, web, and wiki"""
BUILDER_CONFIGS = [ datasets.BuilderConfig(name="arxiv", version=datasets.Version("1.0.0"), description="ArXiv data"), datasets.BuilderConfig(name="standard", version=datasets.Version("1.0.0"), description="Standard data"), datasets.BuilderConfig(name="web", version=datasets.Version("1.0.0"), description="Web data"), datasets.BuilderConfig(name="wiki", version=datasets.Version("1.0.0"), description="Wiki data"), datasets.BuilderConfig(name="full", version=datasets.Version("1.0.0"), description="Full dataset"), ]
DEFAULT_CONFIG_NAME = "full"
def _info(self): features = datasets.Features({ "id": datasets.Value("string"), "category": datasets.Value("string"), "content": datasets.Value("string"), "metadata": datasets.Value("string"), }) return datasets.DatasetInfo(features=features)
def _split_generators(self, dl_manager): if self.config.name == "full": urls = [f"{name}/{name}.jsonl" for name in ["arxiv", "standard", "web", "wiki"]] else: urls = [f"{self.config.name}/{self.config.name}.jsonl"]
data_files = dl_manager.download_and_extract(urls) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={"filepaths": data_files if isinstance(data_files, list) else [data_files]}, ) ]
def _generate_examples(self, filepaths): for filepath in filepaths: with open(filepath, "r", encoding="utf-8") as f: for id_, line in enumerate(f): data = json.loads(line) yield id_, { "id": data["id"], "category": data["category"], "content": data["content"], "metadata": json.dumps(data["metadata"]), }123version https://git-lfs.github.com/spec/v1oid sha256:1f2d03a5cc1d8b0a13964d1a47e2456cd19813beddd8711e47d2e24102a824e7size 4309790362123version https://git-lfs.github.com/spec/v1oid sha256:b9560c7a62612c4724e986fc7443019d886a158a961ddc4c3e521a6650486fa9size 350404101123version https://git-lfs.github.com/spec/v1oid sha256:1a11dede469b0f5568298a8172ca451382c130e1e8db215a5158d3681598759esize 7266835533123version https://git-lfs.github.com/spec/v1oid sha256:0a5bb8acd97ad37a884a845a705206980039d337e49ab3ea5c278925b2e2977esize 129518949.gitattributes+4
README.md+88-3
Tele-Data.pyAdded+51
arxiv/arxiv.jsonlAdded+3
standard/standard.jsonlAdded+3
web/web.jsonlAdded+3
wiki/wiki.jsonlAdded+3