Skip to content

wachoo/bert-demo-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bert-demo-java

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published