{"id":18533684,"url":"https://github.com/lonepatient/torchblocks","last_synced_at":"2025-04-07T13:05:30.843Z","repository":{"id":40617224,"uuid":"273928105","full_name":"lonePatient/TorchBlocks","owner":"lonePatient","description":"A PyTorch-based toolkit for natural language processing","archived":false,"fork":false,"pushed_at":"2023-03-10T02:28:39.000Z","size":493,"stargazers_count":155,"open_issues_count":1,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T12:08:25.500Z","etag":null,"topics":["advertising","bert","multilabel-classification","named-entity-recognition","nlp","pytorch","relation-classification","siamese-network","text-classification","text-similarity","transformers","triplet-loss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lonePatient.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-21T15:09:07.000Z","updated_at":"2025-03-27T16:26:14.000Z","dependencies_parsed_at":"2023-12-21T17:11:04.401Z","dependency_job_id":"07af9179-740a-420f-ba43-1a48d64bdccc","html_url":"https://github.com/lonePatient/TorchBlocks","commit_stats":{"total_commits":54,"total_committers":3,"mean_commits":18.0,"dds":"0.11111111111111116","last_synced_commit":"445140f8190a037b590d3344cdbd6cae5b850da0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonePatient%2FTorchBlocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonePatient%2FTorchBlocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonePatient%2FTorchBlocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonePatient%2FTorchBlocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lonePatient","download_url":"https://codeload.github.com/lonePatient/TorchBlocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657275,"owners_count":20974344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advertising","bert","multilabel-classification","named-entity-recognition","nlp","pytorch","relation-classification","siamese-network","text-classification","text-similarity","transformers","triplet-loss"],"created_at":"2024-11-06T19:12:38.292Z","updated_at":"2025-04-07T13:05:30.814Z","avatar_url":"https://github.com/lonePatient.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TorchBlocks\n\n(Work in Progress!!)\n\nA PyTorch-based toolkit for natural language processing\n\n![python](https://img.shields.io/badge/-Python_3.7_%7C_3.8_%7C_3.9_%7C_3.10-blue?logo=python\u0026logoColor=white)\n![pytorch](https://img.shields.io/badge/PyTorch_1.10+-ee4c2c?logo=pytorch\u0026logoColor=white)\n![black](https://img.shields.io/badge/Code%20Style-Black-black.svg?labelColor=gray)\n![license](https://img.shields.io/badge/License-MIT-green.svg?labelColor=gray)\n\n### Requirements\n\n- torch\u003e=1.10.0\n- tokenizers \u003e= 0.7.0\n- transformers\u003e=4.10.0\n- torchmetrics\u003e=0.11.3\n\n\nTorchBlocks requires Python 3.7+. We recommend installing TorchBlocks in a Linux or OSX environment.\n\n### Installation\n\nRecommended (because of active development):\n\n```shell\ngit clone https://github.com/lonePatient/TorchBlocks.git\ncd TorchBlocks\npython setup.py install\n```\n⚠️**Note:** This project is still in the development stage and some of the interfaces are subject to change.\n\n### Tutorials\n\n* Tutorial 1 (text classification): [task_text_classification_cola.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_text_classification_cola.py)\n* Tutorial 2 (siamese similarity): [task_siamese_similarity_afqmc.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_siamese_similarity_afqmc.py)\n* Tutorial 3 (sequence labeling): [task_sequence_labeling_ner_crf.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_sequence_labeling_ner_crf.py)\n* Tutorial 4 (sentence similarity): [task_sentence_similarity_lcqmc.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_sentence_similarity_lcqmc.py)\n* Tutorial 5 (triple similarity): [task_triple_similarity_epidemic.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_triple_similarity_epidemic.py)\n* Tutorial 6 (sequence labeling): [task_sequence_labeling_resume_beam_search_softmax.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_sequence_labeling_resume_beam_search_softmax.py)\n* Tutorual 7 (sequence labeling): [task_sequence_labeling_resume_global_pointer.py](https://github.com/lonePatient/TorchBlocks/blob/master/examples/task_sequence_labeling_resume_global_pointer.py)\n* Example scripts for each task: [TorchBlocks/examples/](https://github.com/lonePatient/TorchBlocks/tree/master/examples)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonepatient%2Ftorchblocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonepatient%2Ftorchblocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonepatient%2Ftorchblocks/lists"}