Skip to content

How to run the parse function with GPU in rst_parser package? #2

@Guotianyu-2020

Description

@Guotianyu-2020

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions