d97188ee62bc0627235578485c5df7d3245fa1ed,example6.py,,,#,14
Before Change
num_parallel_calls = 4
num_concurrent_clients = num_parallel_calls * 2 // should be at least greater than `num_parallel_calls`
bc_client = BertClient(show_server_config=False, port=5557, port_out=5558)
// hardcoded law_ids
laws = [184, 336, 314, 351, 224, 132, 158, 128, 223, 308, 341, 349, 382, 238, 369, 248, 266, 313, 127, 340, 288, 172,
209, 243, 302, 200, 227, 155, 147, 143, 261, 124, 359, 343, 291, 241, 235, 367, 393, 274, 240, 269, 199, 119,
After Change
with open("README.md") as fp:
data = [v for v in fp if v.strip()]
bc = BertClient()
list_vec = bc.encode(data)
list_label = [0 for _ in data] // a dummy list of all-zero labels
// write tfrecords
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: hanxiao/bert-as-service
Commit Name: d97188ee62bc0627235578485c5df7d3245fa1ed
Time: 2018-12-02
Author: hanhxiao@tencent.com
File Name: example6.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: c139d9a5dcca330c527cbd44cc41b2ef50f57276
Time: 2018-12-18
Author: hanhxiao@tencent.com
File Name: example/example8.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: 2a5cdf112ff0111e781ba61d5424d6e186e06992
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example6.py
Class Name:
Method Name: