{"id":13535025,"url":"https://github.com/gameofdimension/java-bert-predict","last_synced_at":"2025-10-15T07:31:08.038Z","repository":{"id":102015912,"uuid":"158995536","full_name":"gameofdimension/java-bert-predict","owner":"gameofdimension","description":"turn bert pretrain checkpoint into saved model for a feature extracting demo in java","archived":false,"fork":false,"pushed_at":"2018-11-25T04:12:45.000Z","size":4,"stargazers_count":33,"open_issues_count":5,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-02T23:32:07.587Z","etag":null,"topics":["bert","feature-extraction","google-bert","java","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Java","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/gameofdimension.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}},"created_at":"2018-11-25T03:49:02.000Z","updated_at":"2024-02-29T04:51:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"1985ef14-1bb9-4f63-9a8e-5b73eccfbe77","html_url":"https://github.com/gameofdimension/java-bert-predict","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/gameofdimension%2Fjava-bert-predict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameofdimension%2Fjava-bert-predict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameofdimension%2Fjava-bert-predict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameofdimension%2Fjava-bert-predict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gameofdimension","download_url":"https://codeload.github.com/gameofdimension/java-bert-predict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236589566,"owners_count":19173429,"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":["bert","feature-extraction","google-bert","java","tensorflow"],"created_at":"2024-08-01T08:00:48.708Z","updated_at":"2025-10-15T07:31:02.777Z","avatar_url":"https://github.com/gameofdimension.png","language":"Java","readme":"# java-bert-predict\nturn bert pretrain checkpoint into saved model for a feature extracting demo in java\n\n# usage\n\n1. download google bert pretrain from [here](https://storage.googleapis.com/bert_models/2018_11_03/multilingual_L-12_H-768_A-12.zip) and unzip it into a proper path.\n\n2. because java cannot work with tensorflow checkpoint directly, we need to transform checkpoint into saved_model with following command \n\t\u003e python script/checkpoint_to_saved_model.py path/to/unzipped/pretrain/checkpoint path/to/save/model\n\n1. run java program with path/to/save/model as params\n\n\n","funding_links":[],"categories":["other resources for BERT:"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameofdimension%2Fjava-bert-predict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameofdimension%2Fjava-bert-predict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameofdimension%2Fjava-bert-predict/lists"}