{"id":19321864,"url":"https://github.com/abductivelearning/ss-abl","last_synced_at":"2025-04-22T19:31:11.620Z","repository":{"id":88028911,"uuid":"295747000","full_name":"AbductiveLearning/SS-ABL","owner":"AbductiveLearning","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-31T05:57:47.000Z","size":3059,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:46:29.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AbductiveLearning.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-09-15T14:03:45.000Z","updated_at":"2025-03-25T14:54:20.000Z","dependencies_parsed_at":"2023-07-23T16:15:16.119Z","dependency_job_id":null,"html_url":"https://github.com/AbductiveLearning/SS-ABL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbductiveLearning%2FSS-ABL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbductiveLearning%2FSS-ABL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbductiveLearning%2FSS-ABL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbductiveLearning%2FSS-ABL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbductiveLearning","download_url":"https://codeload.github.com/AbductiveLearning/SS-ABL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250308300,"owners_count":21409243,"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-11-10T01:39:21.237Z","updated_at":"2025-04-22T19:31:09.252Z","avatar_url":"https://github.com/AbductiveLearning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"🌟 **New!** [ABLkit](https://github.com/AbductiveLearning/ABLkit) released: A toolkit for Abductive Learning with high flexibility, user-friendly interface, and optimized performance. Welcome to try it out!🚀\n\n# Semi-Supervised Abductive Learning for Theft Judicial Sentencing\n\nThis is the repository for holding the sample code of the Semi-Supervised Abductive Learning framework for Theft Judicial Sentencing experiments in _Semi-Supervised Abductive Learning and Its Application to Theft Judicial Sentencing_ in ICDM 2020.\n\n**This code is only tested in Linux environment.**\n\n## Dependency\n\n- Python 3.6\n\n- tensorflow 1.12.0\n\n\n## Running Code\n\n### Set Data File Path\n\n```python3\n# Before running code, we should set data file path first.\n# By default, all data files are in \"./data/\"\n\n# Data file path's setting codes are lies on line 207 - 212 in \"ss_abl_model.py\".\n# Bert Pretrain json file name\npretrain_filename = \"0_0.10.json\"\n\n# Sentence model supervised traning data file path\npretrain_money_filename = \"./data/0_0.10.csv\" \n\n# Unlabeled data file name\nabl_train_filename = \"1_0.90.json\"\nabl_train_money_filename = \"1_0.90.csv\"\n\n# Bert test data file name\ntest_filename = \"10.json\"\n# Sentence model test data file name\ntest_money_filename = \"10.csv\"\n```\n\n```bash\nunzip data/dataset.zip\nwget https://storage.googleapis.com/bert_models/2018_11_03/chinese_L-12_H-768_A-12.zip\nunzip chinese_L-12_H-768_A-12.zip\npython ss_abl_model.py\n```\n\n### Parameters\n\nOur model's parameters are listed below.\n\n```python3\n# Model's Parameter and default value\nabl_max_change_num = 2 # The max number of label could be changed on abduction\n\nabl_times = 1 # The model traning iteration number\nrule_file_path = \"rule_test_file.txt\" # abduction rule file path\n\npretrain_bert_train_epochs = 16 # The epoch number of BERT training on Supervised data\npretrain_sentence_model_times = 3 # The epoch number of sentence model traning on Supervised data\nabl_bert_train_epochs = 1 # The epoch number per iteration of BERT traning on abduction process\nabl_sentence_model_times = 3 # The epoch number per iteration of sentence model traning on abduction process\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabductivelearning%2Fss-abl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabductivelearning%2Fss-abl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabductivelearning%2Fss-abl/lists"}