{"id":13535134,"url":"https://github.com/pengming617/bert_classification","last_synced_at":"2025-04-02T00:32:37.120Z","repository":{"id":201741595,"uuid":"162686907","full_name":"pengming617/bert_classification","owner":"pengming617","description":"利用bert预训练的中文模型进行文本分类  数据集中文情感分析语料chnsenticorp","archived":false,"fork":false,"pushed_at":"2019-08-26T03:02:16.000Z","size":4058,"stargazers_count":302,"open_issues_count":6,"forks_count":73,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T08:09:55.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pengming617.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-21T08:20:07.000Z","updated_at":"2024-08-02T03:41:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6fe6d218-8559-47c9-a229-18aabdeddbd5","html_url":"https://github.com/pengming617/bert_classification","commit_stats":null,"previous_names":["pengming617/bert_classification"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengming617%2Fbert_classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengming617%2Fbert_classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengming617%2Fbert_classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengming617%2Fbert_classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pengming617","download_url":"https://codeload.github.com/pengming617/bert_classification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222788514,"owners_count":17037777,"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":[],"created_at":"2024-08-01T08:00:50.145Z","updated_at":"2024-11-02T23:30:40.584Z","avatar_url":"https://github.com/pengming617.png","language":"Python","readme":"利用bert预训练的中文语言模型进行文本分类\n\n训练脚本 train.sh\n\n批量测试脚本 predict.sh\n\n利用模型进行单条语句测试 intent.py\n注：修改single_predict.py中 get_test_examples,get_labels方法 max_seq_length，需run_classifier.py一致\n\nchinese_L-12_H-768_A-12为预训练的相关模型和词典\n\ndata文件夹中为训练语料，验证语料，测试语料\n\n注意：\n当语料中的分类种类发生变化时，run_classifier.py文件的SimProcessor中的get_labels方法也要随之变化\n\n参数说明：\nmax_seq_length  sentence的最大长度（字）\ntrain_batch_size  batch_size的大小\n","funding_links":[],"categories":["BERT classification task:"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengming617%2Fbert_classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpengming617%2Fbert_classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengming617%2Fbert_classification/lists"}