Skip to content

turn bert pretrain checkpoint into saved model for a feature extracting demo in java

Notifications You must be signed in to change notification settings

gameofdimension/java-bert-predict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-bert-predict

turn bert pretrain checkpoint into saved model for a feature extracting demo in java

usage

  1. download google bert pretrain from here and unzip it into a proper path.

  2. because java cannot work with tensorflow checkpoint directly, we need to transform checkpoint into saved_model with following command

    python script/checkpoint_to_saved_model.py path/to/unzipped/pretrain/checkpoint path/to/save/model

  3. run java program with path/to/save/model as params

About

turn bert pretrain checkpoint into saved model for a feature extracting demo in java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published