My code are as follows:
with pd.read_csv(path, chunksize=10) as reader: # 每次读取1000行
results = []
for chunk in reader:
data = chunk['Data'].tolist()
tree_results, dis_results = rst_parser.parse(data)
results.extend(dis_results) # 收集结果
I need to parse thousands of sentences, however I cannot find where can I use GPU to process.
Thank you.
My code are as follows:
I need to parse thousands of sentences, however I cannot find where can I use GPU to process.
Thank you.