Skip to content

works, with tencent bert-as-service py tcp server

Notifications You must be signed in to change notification settings

BioAmelie/a-julia-bert-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

a-julia-bert-client

  1. download model, then run bert-as-service

     pip install bert-serving-server
    
     bert-serving-start -model_dir ./model_dir -num_worker=4
  2. in julia

     include("BertClient.jl")
    
     BertClient.bert_encode(str)

    bert_encode( [str1,str2,...] ) is also okay

    bert_init() is optional,

    default: tcp_server_address="127.0.0.1", port_client_input=5555, port_server_output=5556


remember to install tensorflow-gpu for (server side) better performance

no need to pack into a package I guess?

About

works, with tencent bert-as-service py tcp server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%