问题如图
Could not find the database of available applications, run update-command-not-found as root to fix this
bert-serving-start: command not found
解决方法
https://github.com/hanxiao/bert-as-service/issues/194
import sys
from bert_serving.server import BertServer
from bert_serving.server.helper import get_run_args
if __name__ == '__main__':
args = get_run_args()
server = BertServer(args)
server.start()
server.join()
执行结果