(简体中文|English)
sh get_data.sh
the package downloaded contains cnn, lstm and bow model config along with their test_data and train_data.
python3 -m paddle_serving_server.serve --model imdb_cnn_model/ --port 9292
head test_data/part-0 | python3 test_client.py imdb_cnn_client_conf/serving_client_conf.prototxt imdb.vocab
it will get predict results of the first 10 test cases.
head test_data/part-0 | python3 test_http_client.py imdb_cnn_client_conf/serving_client_conf.prototxt imdb.vocab